From 1c5d5e0b72aefe6ca6b380d1b0a8c927e2e362e8 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 9 Aug 2010 21:23:52 -0700 Subject: [PATCH] uppercase request methods --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;