[Webkit-unassigned] [Bug 29304] New: XMLHTTPRequest responses do not include the correct statusText
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 16 10:38:03 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29304
Summary: XMLHTTPRequest responses do not include the correct
statusText
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jan at apache.org
Any XHR response has the property `statusText` hardcoded to "OK", instead of
the correct string corresponding to the response's `statusCode` property. This
breaks RFC2616.
The attached patch fixes this on the Mac platform. The correct fix would be
adding a `responseText` method to NSHTTPURLResponse, but this is out of my
reach. I filed radr://7227480, though.
The formatting of the case statement is deliberately diverging from the coding
standards for readability. I hope you agree with my choice. If not, I'm happy
to make a coding standards compliant version.
I added a simple test case for this patch and fixed another test case that
relied on the broken behaviour.
Please let me know if you need any more information.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list