2013-10-16 | Paul Boddie | raw files shortlog changelog graph | Fixed the response to avoid two sets of headers and an unusable response body. | |
actions/FetchMessages.py (file) |
1.1 --- a/actions/FetchMessages.py Wed Oct 16 16:50:48 2013 +0200 1.2 +++ b/actions/FetchMessages.py Wed Oct 16 17:41:45 2013 +0200 1.3 @@ -168,7 +168,7 @@ 1.4 1.5 # Write the response. 1.6 1.7 - request.write("Content-Type: text/plain\n\n") 1.8 + writeHeaders(request, "text/plain", getMetadata(self.page)) 1.9 request.write(message.as_string()) 1.10 return 1, None 1.11