From 0ce7c75a295ba4207669cfe234db5c388baa0982 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 21 Feb 2012 10:22:57 -0500 Subject: [PATCH] Use \r\n in SCGI example server header endlines. As recommended by Jeroen Vermeulen in the referenced LJ article. --- posts/SCGI.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 2.26.2