Comparing version 3.1.0 to 3.2.0
@@ -58,2 +58,6 @@ 'use strict'; | ||
if (json) { | ||
opts.headers.accept = opts.headers.accept || 'application/json'; | ||
} | ||
if (body) { | ||
@@ -60,0 +64,0 @@ opts.method = opts.method || 'POST'; |
{ | ||
"name": "got", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Simplified HTTP/HTTPS requests", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -79,3 +79,3 @@ # got [![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) | ||
If enabled, response body will be parsed with `JSON.parse`. | ||
If enabled, response body will be parsed with `JSON.parse` and `accept` header will be set to `application/json` by default. | ||
@@ -82,0 +82,0 @@ ###### query |
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
11844
201