Changeset 41719 in webkit
- Timestamp:
- Mar 15, 2009 10:40:33 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r41715 r41719 1 2009-03-15 Gustavo Noronha Silva <gns@gnome.org> 2 3 Reviewed by Anders Carlsson. 4 5 https://bugs.webkit.org/show_bug.cgi?id=24602 6 [Gtk] Searching in thepiratebay.org doesn't work with more than 1 word 7 8 Reintroduce the URI into the soup message after having set it in 9 the KURL, on redirects, to make sure it is properly encoded. This 10 fixes bad request problems when servers give bad URIs on their 11 response's Location header. 12 13 * platform/network/soup/ResourceHandleSoup.cpp: 14 (WebCore::restartedCallback): 15 1 16 2009-03-15 Alexey Proskuryakov <ap@webkit.org> 2 17 -
trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp
r41619 r41719 188 188 KURL newURL = KURL(handle->request().url(), location); 189 189 190 // FIXME: This is needed because some servers use broken URIs in 191 // their Location header, when redirecting, such as URIs with 192 // white spaces instead of %20; this should be fixed in soup, in 193 // the future, and this work-around removed. 194 // See http://bugzilla.gnome.org/show_bug.cgi?id=575378. 195 SoupURI* soup_uri = soup_uri_new(newURL.string().utf8().data()); 196 soup_message_set_uri(msg, soup_uri); 197 soup_uri_free(soup_uri); 198 190 199 ResourceRequest request = handle->request(); 191 200 ResourceResponse response;
Note: See TracChangeset
for help on using the changeset viewer.