Comparing version 3.0.0 to 3.0.1
@@ -158,3 +158,7 @@ "use strict"; | ||
opts.body = JSON.stringify(opts.data); | ||
opts.headers['Content-Type'] = 'application/json'; | ||
// Allow the user to specifiy their own content type, | ||
// such as application/json-patch+json: | ||
if (!opts.headers['Content-Type']) { | ||
opts.headers['Content-Type'] = 'application/json'; | ||
} | ||
} | ||
@@ -161,0 +165,0 @@ else { |
# Changelog | ||
### [3.0.1](https://www.github.com/googleapis/gaxios/compare/v3.0.0...v3.0.1) (2020-03-23) | ||
### Bug Fixes | ||
* allow an alternate JSON content-type to be set ([#257](https://www.github.com/googleapis/gaxios/issues/257)) ([698a29f](https://www.github.com/googleapis/gaxios/commit/698a29ff3b22f30ea99ad190c4592940bef88f1f)) | ||
## [3.0.0](https://www.github.com/googleapis/gaxios/compare/v2.3.2...v3.0.0) (2020-03-19) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "gaxios", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"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
53964
571