Comparing version 2.3.3 to 2.3.4
@@ -156,4 +156,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'; | ||
@@ -160,0 +167,0 @@ } |
{ | ||
"name": "gaxios", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53604
576