gaxios
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -159,4 +159,11 @@ "use strict"; | ||
// Allow the user to specifiy their own content type, | ||
// such as application/json-patch+json: | ||
if (!opts.headers['Content-Type']) { | ||
// such as application/json-patch+json; for historical reasons this | ||
// content type must currently be a json type, as we are relying on | ||
// application/x-www-form-urlencoded (which is incompatible with | ||
// upstream GCP APIs) being rewritten to application/json. | ||
// | ||
// TODO: refactor upstream dependencies to stop relying on this | ||
// side-effect. | ||
if (!opts.headers['Content-Type'] || | ||
!opts.headers['Content-Type'].includes('json')) { | ||
opts.headers['Content-Type'] = 'application/json'; | ||
@@ -163,0 +170,0 @@ } |
# Changelog | ||
### [3.0.2](https://www.github.com/googleapis/gaxios/compare/v3.0.1...v3.0.2) (2020-03-24) | ||
### Bug Fixes | ||
* continue replacing application/x-www-form-urlencoded with application/json ([#263](https://www.github.com/googleapis/gaxios/issues/263)) ([dca176d](https://www.github.com/googleapis/gaxios/commit/dca176df0990f2c22255f9764405c496ea07ada2)) | ||
### [3.0.1](https://www.github.com/googleapis/gaxios/compare/v3.0.0...v3.0.1) (2020-03-23) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "gaxios", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
54928
578
9