From konq-bugs Sun Jan 23 00:05:53 2005 From: Michael Clark Date: Sun, 23 Jan 2005 00:05:53 +0000 To: konq-bugs Subject: [Bug 95981] XMLHttpRequest.setRequestHeader adds a linebreak after Message-Id: <20050123000553.25390.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=konq-bugs&m=110643876215402 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=95981 ------- Additional Comments From michael metaparadigm com 2005-01-23 01:05 ------- I've tracked this down - it is a bug in xmlHttpRequest.cpp. It doesn't set the mandatory 'content-type' metadata for the http kio_slave and kio/http/http.c just print a blank field. The Content-type does however shows up although it is set as an additional header field. This of course is the problem. Here is a test site: http://oss.metaparadigm.com/jsonrpc/test.jsp I'll follow up with a patch the fixes the problem (should apply to current CVS). The patch changes setRequestHeader to stash the Content-type instead of adding it and then it is added to the job as metadata (which is the correct method accoriding to the comments in job.h). Once you apply the patch you'll find the above test site works. _______________________________________________ Konq-bugs mailing list Konq-bugs@mail.kde.org https://mail.kde.org/mailman/listinfo/konq-bugs