git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a3ccab
)
- set Content-type header
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 25 Oct 2006 21:05:05 +0000
(21:05 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 25 Oct 2006 21:05:05 +0000
(21:05 +0000)
ModPython.py
patch
|
blob
|
history
diff --git
a/ModPython.py
b/ModPython.py
index
e5f1174
..
79d8fde
100644
(file)
--- a/
ModPython.py
+++ b/
ModPython.py
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
-# $Id$
+# $Id
: ModPython.py,v 1.1 2006/09/06 15:33:59 mlhuang Exp
$
#
import sys
@@
-47,6
+47,7
@@
def handler(req):
# Write response
req.content_type = "text/xml"
+ req.headers_out.add("Content-type", "text/xml")
req.headers_out.add("Content-length", str(len(response)))
req.send_http_header()
req.write(response)