Commit e9135d7c authored by Amos Latteier's avatar Amos Latteier

Fixed a content-type problem that resulted in <html><head></head> being tacked...

Fixed a content-type problem that resulted in <html><head></head> being tacked on the front of downloaded DTML Methods and Documents.
parent aef7da0b
......@@ -135,5 +135,6 @@ class CallbackPipe:
def make_response(callback,*args):
# XXX should this be the FTPResponse constructor instead?
return FTPResponse(stdout=CallbackPipe(callback, args), stderr=StringIO())
\ No newline at end of file
r=FTPResponse(stdout=CallbackPipe(callback, args), stderr=StringIO())
r.setHeader('content-type','text/plain')
return r
......@@ -135,5 +135,6 @@ class CallbackPipe:
def make_response(callback,*args):
# XXX should this be the FTPResponse constructor instead?
return FTPResponse(stdout=CallbackPipe(callback, args), stderr=StringIO())
\ No newline at end of file
r=FTPResponse(stdout=CallbackPipe(callback, args), stderr=StringIO())
r.setHeader('content-type','text/plain')
return r
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment