Skip to content

Commit

Permalink
Fix: add 'application/zip' accept header (#41602)
Browse files Browse the repository at this point in the history
See Automattic/wp-calypso#59527 for further informations.
  • Loading branch information
zaerl authored Jun 23, 2022
1 parent 56f0c12 commit a94c228
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default function SiteExport() {
const response = await apiFetch( {
path: '/wp-block-editor/v1/export',
parse: false,
headers: {
Accept: 'application/zip',
},
} );
const blob = await response.blob();
const contentDisposition = response.headers.get(
Expand Down

0 comments on commit a94c228

Please sign in to comment.