Comparing version 1.5.0-experimental to 1.5.1-experimental
@@ -25,3 +25,3 @@ const http = require('http'); | ||
return new Promise((resolve, reject) => { | ||
if (options.method === 'POST' || options.method === 'PUT') { | ||
if (options.method === 'POST' || options.method === 'PUT' || options.method === 'PATCH') { | ||
options.headers = options.headers || {}; | ||
@@ -28,0 +28,0 @@ options.headers['content-length'] = Buffer.byteLength(options.body, 'utf8'); |
@@ -274,2 +274,3 @@ /** | ||
ServerResponse.HTTP_CREATED = 201; | ||
ServerResponse.HTTP_ACCEPTED = 202; | ||
ServerResponse.HTTP_MOVED_PERMANENTLY = 301; | ||
@@ -298,2 +299,3 @@ ServerResponse.HTTP_FOUND = 302; | ||
'201': ['Created', 'Resource created'], | ||
'202': ['Accepted', 'Request accepted'], | ||
'301': ['Moved Permanently', 'Resource has been permanently moved'], | ||
@@ -300,0 +302,0 @@ '302': ['Found', 'Resource was found under another URI'], |
{ | ||
"name": "hydra", | ||
"version": "1.5.0-experimental", | ||
"version": "1.5.1-experimental", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Carlos Justiniano", |
Sorry, the diff of this file is too big to display
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
247297
3639