python: Fixed typo.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 30 Aug 2012 03:13:15 +0000 (05:13 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 30 Aug 2012 03:13:15 +0000 (05:13 +0200)
python/ashd-wsgi

index f20d6ca..46cf85c 100755 (executable)
@@ -137,7 +137,7 @@ def dowsgi(req):
         del env["HTTP_CONTENT_TYPE"]
     if "Content-Length" in req:
         env["CONTENT_LENGTH"] = req["Content-Length"]
         del env["HTTP_CONTENT_TYPE"]
     if "Content-Length" in req:
         env["CONTENT_LENGTH"] = req["Content-Length"]
-        del env["HTTP_CONTENT_TYPE"]
+        del env["HTTP_CONTENT_LENGTH"]
     if "X-Ash-File" in req: env["SCRIPT_FILENAME"] = absolutify(req["X-Ash-File"])
     if "X-Ash-Protocol" in req: env["wsgi.url_scheme"] = req["X-Ash-Protocol"]
     env["wsgi.input"] = req.sk
     if "X-Ash-File" in req: env["SCRIPT_FILENAME"] = absolutify(req["X-Ash-File"])
     if "X-Ash-Protocol" in req: env["wsgi.url_scheme"] = req["X-Ash-Protocol"]
     env["wsgi.input"] = req.sk