Skip to content

Commit

Permalink
fix(core): 👌 add Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymichel committed Mar 18, 2019
1 parent dd704e8 commit 94962ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function timeout(
*/
async function fetcher(url: string): Promise<string> {
const headers = new Headers({
Accept: 'text/html,application/xhtml+xml,application/xml', // tslint:disable-line:object-literal-key-quotes
'x-barba': 'yes',
});

Expand Down

0 comments on commit 94962ef

Please sign in to comment.