Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-08-10 08:23:52 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-08-10 08:23:52 +0400
commit1c5d5e0b72aefe6ca6b380d1b0a8c927e2e362e8 (patch)
tree9e7c5ad743af98064f45ad039ba5d99407de4e60 /lib/http.js
parent7d4e8a9a7114d9477238e01703bb10129e5b4ba5 (diff)
uppercase request methods
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js
index 8c9a850f914..fee73d2b027 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;