Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e033e2
)
Decode CGI CONTENT_{TYPE,LENGTH} properly into ihead.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 28 Aug 2012 00:57:59 +0000
(
02:57
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 28 Aug 2012 00:57:59 +0000
(
02:57
+0200)
wrw/req.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/req.py
b/wrw/req.py
index
861454b
..
4f93eb9
100644
(file)
--- a/
wrw/req.py
+++ b/
wrw/req.py
@@
-73,6
+73,10
@@
class origrequest(request):
self.servername = env["SERVER_NAME"]
self.https = "HTTPS" in env
self.ihead = headdict()
+ if "CONTENT_TYPE" in env:
+ self.ihead["Content-Type"] = env["CONTENT_TYPE"]
+ if "CONTENT_LENGTH" in env:
+ self.ihead["Content-Length"] = env["CONTENT_LENGTH"]
self.ohead = headdict()
for k, v in env.items():
if k[:5] == "HTTP_":