@nuxtjs/axios
Advanced tools
Comparing version 5.10.0 to 5.10.1
@@ -5,2 +5,4 @@ # Changelog | ||
### [5.10.1](https://github.com/nuxt-community/axios-module/compare/v5.10.0...v5.10.1) (2020-04-22) | ||
## [5.10.0](https://github.com/nuxt-community/axios-module/compare/v5.9.7...v5.10.0) (2020-04-21) | ||
@@ -7,0 +9,0 @@ |
@@ -7,9 +7,2 @@ import Axios from 'axios' | ||
// Check Node.js brotli support | ||
let brotliSupported | ||
if (process.server) { | ||
const zlib = require('zlib') | ||
brotliSupported = typeof zlib.createBrotliDecompress == 'function' | ||
} | ||
// Axios.prototype cannot be modified | ||
@@ -217,4 +210,4 @@ const axiosExtra = { | ||
// Don't accept brotli encoding because Node can't parse it | ||
if (process.server && !brotliSupported) { | ||
if (process.server) { | ||
// Don't accept brotli encoding because Node can't parse it | ||
axiosOptions.headers.common['accept-encoding'] = 'gzip, deflate' | ||
@@ -221,0 +214,0 @@ } |
{ | ||
"name": "@nuxtjs/axios", | ||
"version": "5.10.0", | ||
"version": "5.10.1", | ||
"description": "Secure and easy axios integration with Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
40674
333