incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493298 - /incubator/heraldry/libraries/python/openid/trunk/examples/server.py
Date Sat, 06 Jan 2007 05:16:36 GMT
Author: keturn
Date: Fri Jan  5 21:16:34 2007
New Revision: 493298

URL: http://svn.apache.org/viewvc?view=rev&rev=493298
Log:
[python-to-heraldry @ Use API calls to sent Content-type header and begin body]

Original author: cygnus@janrain.com
Date: 2006-10-28 19:35:18+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/examples/server.py

Modified: incubator/heraldry/libraries/python/openid/trunk/examples/server.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/examples/server.py?view=diff&rev=493298&r1=493297&r2=493298
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/examples/server.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/examples/server.py Fri Jan  5 21:16:34
2007
@@ -565,11 +565,10 @@
 
         self.send_response(response_code)
         self.writeUserHeader()
+        self.send_header('Content-type', 'text/html')
+        self.end_headers()
 
-        self.wfile.write('''\
-Content-type: text/html
-
-<html>
+        self.wfile.write('''<html>
   <head>
     <title>%(title)s</title>
     %(head_extras)s



Mime
View raw message