@nuxtjs/axios
Advanced tools
Comparing version 5.5.0 to 5.5.1
@@ -5,2 +5,11 @@ # Change Log | ||
## [5.5.1](https://github.com/nuxt-community/axios-module/compare/v5.5.0...v5.5.1) (2019-05-23) | ||
### Bug Fixes | ||
* don't toLowerCase headers for `setHeader` and `setToken` ([#250](https://github.com/nuxt-community/axios-module/issues/250)) ([93469f0](https://github.com/nuxt-community/axios-module/commit/93469f0)) | ||
# [5.5.0](https://github.com/nuxt-community/axios-module/compare/v5.4.2...v5.5.0) (2019-05-22) | ||
@@ -7,0 +16,0 @@ |
@@ -7,4 +7,2 @@ import Axios from 'axios' | ||
setHeader (name, value, scopes = 'common') { | ||
name = name.toLowerCase() | ||
for (let scope of Array.isArray(scopes) ? scopes : [ scopes ]) { | ||
@@ -20,3 +18,3 @@ if (!value) { | ||
const value = !token ? null : (type ? type + ' ' : '') + token | ||
this.setHeader('authorization', value, scopes) | ||
this.setHeader('Authorization', value, scopes) | ||
}, | ||
@@ -23,0 +21,0 @@ onRequest(fn) { |
{ | ||
"name": "@nuxtjs/axios", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"description": "Secure and easy axios integration with Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
31795
299