From c03e4b9a7fb1c993367044fe9241cb99ddd5d8b9 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Fri, 16 Oct 2009 17:45:50 -0700 Subject: [PATCH] request.ip request.acceptEncoding Conflicts: --- lib/jack/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jack/request.js b/lib/jack/request.js index 95c2487..d100280 100644 --- a/lib/jack/request.js +++ b/lib/jack/request.js @@ -119,7 +119,7 @@ Request.prototype.POST = function() { this.env["jack.request.form_input"] = this.env["jsgi.input"]; this.env["jack.request.form_hash"] = utils.parseMultipart(this.env); if (!this.env["jack.request.form_hash"]) { - this.env["jack.request.form_vars"] = this.body().decodeToString("utf-8"); + this.env["jack.request.form_vars"] = this.body().decodeToString(this.contentCharset() || "utf-8"); this.env["jack.request.form_hash"] = utils.parseQuery(this.env["jack.request.form_vars"]); //this.env["jsgi.input"].rewind(); }