Skip to content

Commit

Permalink
fix: delete accept header
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
Pooya Parsa committed Sep 6, 2017
1 parent 9830f4b commit 2f04e30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugin.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default <% if (options.init) { %>async<% } %>(ctx, inject) => {
// Default headers
headers.common = (req && req.headers) ? Object.assign({}, req.headers) : {}
delete headers.common.host
delete headers.common.accept
<% } %>

// Create new axios instance
Expand Down

0 comments on commit 2f04e30

Please sign in to comment.