| Summary: | Cannot log into OpenWRT due to strange Content-Type header | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Alexander Patrakov <patrakov> |
| Component: | general | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aiacovitti |
| Priority: | NOR | ||
| Version First Reported In: | 4.8.0 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.8.2 | |
| Sentry Crash Report: | |||
|
Description
Alexander Patrakov
2012-03-04 15:43:23 UTC
Could you try this patch and see if the problem is fixed?
--- kioslave/http/http.cpp
+++ kioslave/http/http.cpp
@@ -2625,8 +2625,8 @@
if (!contentType.isEmpty())
{
if (!contentType.startsWith(QLatin1String("content-type"), Qt::CaseInsensitive))
- header += QLatin1String("Content-Type:");
- header += contentType;
+ header += QLatin1String("Content-Type: ");
+ header += contentType.trimmed();
header += QLatin1String("\r\n");
}
Git commit 5bc91690dff7c3608d3ca2cb285140a86002f4ca by Andrea Iacovitti. Committed on 12/03/2012 at 08:53. Pushed by aiacovitti into branch 'KDE/4.8'. Make sure there is a whitespace after the colon in Content-Type http header FIXED-IN: 4.8.2 REVIEW: 104221 M +1 -1 kioslave/http/http.cpp http://commits.kde.org/kdelibs/5bc91690dff7c3608d3ca2cb285140a86002f4ca |