| Summary: | HTTP responses containing just a header cause Konqueror to wait indefinitely for a response | ||
|---|---|---|---|
| Product: | [Unmaintained] kio | Reporter: | Robert Hogan <robert> |
| Component: | http | Assignee: | Unassigned bugs <unassigned-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Robert Hogan
2007-07-12 16:04:59 UTC
As a sidenote: Firefox, Opera and wget all handle http://moria.csail.mit.edu:9031/tor/status/rob gracefully. Confirmed here SVN commit 707403 by adawit:
- Do not assume that the server will send error pages on 4xx and 5xx response. Fixes 147812.
BUG:147812
M +8 -0 http.cpp
--- trunk/KDE/kdelibs/kioslave/http/http.cpp #707402:707403
@@ -4399,6 +4399,14 @@
closeCacheEntry();
}
+ if (sz <= 1)
+ {
+ if (m_responseCode >= 500 && m_responseCode <= 599)
+ error(ERR_INTERNAL_SERVER, m_state.hostname);
+ else if (m_responseCode >= 400 && m_responseCode <= 499)
+ error(ERR_DOES_NOT_EXIST, m_state.hostname);
+ }
+
if (!dataInternal)
data( QByteArray() );
return true;
|