Permalink
Browse files

fix: delete accept header

fixes #12
  • Loading branch information...
pi0 committed Sep 6, 2017
1 parent 9830f4b commit 2f04e3020f002f3336a74a4fa5ccb3b5cd8d2032
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/plugin.template.js
@@ -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

0 comments on commit 2f04e30

Please sign in to comment.