[PATCH 6 of 15] Use the http-spec it's \r\n\r\n not \n\n

vincent at ricardis.tudelft.nl vincent at ricardis.tudelft.nl
Wed Aug 24 16:49:14 CDT 2005


Patch subject is complete summary.


# HG changeset patch
# User Vincent Wagelaar <vincent at ricardis.tudelft.nl>
# Node ID d67a94524677b55d240636a3bcf378dc5e0b3cab
# Parent  998d9be9dfc25ab8185ff14694a13ab572d4c763
Use the http-spec it's \r\n\r\n not \n\n

diff -r 998d9be9dfc2 -r d67a94524677 mercurial/hgweb.py
--- a/mercurial/hgweb.py	Wed Aug 24 11:50:45 2005
+++ b/mercurial/hgweb.py	Wed Aug 24 13:16:18 2005
@@ -54,7 +54,7 @@
     return up + "/"
 
 def httphdr(fd, type):
-    fd.write('Content-type: %s\n\n' % type)
+    fd.write('Content-type: %s\r\n\r\n' % type)
 
 def httpnotfound(fd, filename):
     out.write("Status: 404\r\n\r\n")


More information about the Mercurial mailing list