[Pkg-javascript-commits] [node-stream-http] 101/208: Stop ignoring PATCH request bodies
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 13 13:39:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-stream-http.
commit 031b8aab89e2094a729585d1aeaf3210681b92bf
Author: Matt Crute <matt.crute at lanetix.com>
Date: Wed Sep 30 11:01:26 2015 -0700
Stop ignoring PATCH request bodies
---
lib/request.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/request.js b/lib/request.js
index 9bb3c4b..4525d91 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -93,7 +93,7 @@ ClientRequest.prototype._onFinish = function () {
var headersObj = self._headers
var body
- if (opts.method === 'POST' || opts.method === 'PUT') {
+ if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {
if (capability.blobConstructor) {
body = new global.Blob(self._body.map(function (buffer) {
return buffer.toArrayBuffer()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git
More information about the Pkg-javascript-commits
mailing list