Changeset 207856 in webkit


Ignore:
Timestamp:
Oct 25, 2016 4:42:43 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[SOUP] Network process assertion in NetworkDataTask::continueHTTPRedirection
https://bugs.webkit.org/show_bug.cgi?id=163941

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2016-10-25
Reviewed by Michael Catanzaro.

equalLettersIgnoringASCIICase() expects the second argument to be the letters to compare in lowercase, so use
"get" instead of "GET".

  • NetworkProcess/soup/NetworkDataTaskSoup.cpp:

(WebKit::NetworkDataTaskSoup::continueHTTPRedirection):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r207839 r207856  
     12016-10-25  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] Network process assertion in NetworkDataTask::continueHTTPRedirection
     4        https://bugs.webkit.org/show_bug.cgi?id=163941
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        equalLettersIgnoringASCIICase() expects the second argument to be the letters to compare in lowercase, so use
     9        "get" instead of "GET".
     10
     11        * NetworkProcess/soup/NetworkDataTaskSoup.cpp:
     12        (WebKit::NetworkDataTaskSoup::continueHTTPRedirection):
     13
    1142016-10-25  Eric Carlson  <eric.carlson@apple.com>
    215
  • trunk/Source/WebKit2/NetworkProcess/soup/NetworkDataTaskSoup.cpp

    r207815 r207856  
    620620
    621621    bool isCrossOrigin = !protocolHostAndPortAreEqual(m_firstRequest.url(), request.url());
    622     if (!equalLettersIgnoringASCIICase(request.httpMethod(), "GET")) {
     622    if (!equalLettersIgnoringASCIICase(request.httpMethod(), "get")) {
    623623        // Change newRequest method to GET if change was made during a previous redirection or if current redirection says so.
    624624        if (m_soupMessage->method == SOUP_METHOD_GET || !request.url().protocolIsInHTTPFamily() || shouldRedirectAsGET(m_soupMessage.get(), isCrossOrigin)) {
Note: See TracChangeset for help on using the changeset viewer.