diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-08-09 21:23:52 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-08-09 21:23:52 -0700 |
commit | 1c5d5e0b72aefe6ca6b380d1b0a8c927e2e362e8 (patch) | |
tree | 9e7c5ad743af98064f45ad039ba5d99407de4e60 | |
parent | 7d4e8a9a7114d9477238e01703bb10129e5b4ba5 (diff) | |
download | node-new-1c5d5e0b72aefe6ca6b380d1b0a8c927e2e362e8.tar.gz |
uppercase request methods
-rw-r--r-- | lib/http.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js index 8c9a850f91..fee73d2b02 100644 --- a/lib/http.js +++ b/lib/http.js @@ -605,7 +605,7 @@ ServerResponse.prototype.writeHeader = function () { function ClientRequest (socket, method, url, headers) { OutgoingMessage.call(this, socket); - this.method = method; + this.method = method = method.toUpperCase(); this.shouldKeepAlive = false; if (method === "GET" || method === "HEAD") { this.useChunkedEncodingByDefault = false; |