request-micro
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -7,4 +7,8 @@ # Change Log / Release Notes | ||
## [1.5.1] - 2019-02-20 | ||
## Changed | ||
Use uppercase version of headers to reduce application header collisions | ||
## [1.3.0] - 2018-05-09 | ||
## Added | ||
Stream support for body |
@@ -57,4 +57,4 @@ module.exports = request | ||
if (opts.method) opts.method = opts.method.toUpperCase() | ||
if (opts.json) opts.headers.accept = 'application/json' | ||
if (opts.json && body) opts.headers['content-type'] = 'application/json' | ||
if (opts.json) opts.headers['Accept'] = 'application/json' | ||
if (opts.json && body) opts.headers['Content-Type'] = 'application/json' | ||
@@ -61,0 +61,0 @@ // Support http: and https: urls |
{ | ||
"name": "request-micro", | ||
"description": "A tiny request library with no dependencies. Supports Http(s) and follows redirects", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Timothy Kye", |
6627