[PATCH] Set content-type if HTTP headers are missing

Ralf Holzer ralf at well.com
Sat Apr 24 22:48:37 BST 2004


The attached patch is my attempt to fix bug 71751. It fixes a horribly broken 
webserver that sends absolutely no header at all, not even an HTTP response 
header. It just sends two newlines and then the <HTML> tag. Unfortunately 
that's the main university registration system :(.
 
The http kioslave is currently checking for the case when there are no headers 
other than the HTTP response but it doesn't work in the case where the is no 
header at all. The patch fixes this and sets the mime type to text/html, if 
the response starts with a tag.

Does anybody see a problem with this or can I go ahead and commit it?

Ralf
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http.cc.patch
Type: text/x-diff
Size: 1216 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040424/6808c927/attachment.patch>


More information about the kfm-devel mailing list