From: W. Trevor King Date: Tue, 21 Feb 2012 15:22:57 +0000 (-0500) Subject: Use \r\n in SCGI example server header endlines. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ce7c75a295ba4207669cfe234db5c388baa0982;p=blog.git Use \r\n in SCGI example server header endlines. As recommended by Jeroen Vermeulen in the referenced LJ article. --- diff --git a/posts/SCGI.mdwn b/posts/SCGI.mdwn index b4c19b8..7859b08 100644 --- a/posts/SCGI.mdwn +++ b/posts/SCGI.mdwn @@ -23,9 +23,9 @@ something like: if url is None: # fall back to the request URI url = env.get('REQUEST_URI', None) data = urlparse.parse_qs(env.get('QUERY_STRING', '')) - output.write('Status: 200 OK\n') - output.write('Content-type: text/plain; charset=UTF-8\n') - output.write('\n') + output.write('Status: 200 OK\r\n') + output.write('Content-type: text/plain; charset=UTF-8\r\n') + output.write('\r\n') output.write('URI: {}\n'.format(url)) output.write('data: {}\n'.format(data))