• robert@webkit.org's avatar
    2010-06-25 Robert Hogan <robert@webkit.org> · afa452ab
    robert@webkit.org authored
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt] HTTP 307 after a 303 after a POST re-sends POST data from the original request
    
            https://bugs.webkit.org/show_bug.cgi?id=35301
    
            Qt needs to use ResourceRequest::request()->httpMethod()) in order to determine
            the appropriate method for a 307 redirect request.
    
            When deciding if it needs to override a POST method with a GET method during a
            redirect chain, QNetworkReplyHandler needs to check the HTTP method stored
            in ResourceRequest::request()->httpMethod(). This will always contain the
            original request method in a redirect chain and, more importantly, is the
            method that will be used for the request created from the redirect
            if it is not overridden.
    
            Unskip http/tests/loading/307-after-303-after-post.html
    
            * platform/qt/Skipped:
    2010-06-25  Robert Hogan  <robert@webkit.org>
    
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt] HTTP 307 after a 303 after a POST re-sends POST data from the original request
    
            https://bugs.webkit.org/show_bug.cgi?id=35301
    
            Qt needs to use ResourceRequest::request()->httpMethod()) in order to determine
            the appropriate method for a 307 redirect request.
    
            When deciding if it needs to override a POST method with a GET method during a
            redirect chain, QNetworkReplyHandler needs to check the HTTP method stored
            in ResourceRequest::request()->httpMethod(). This will always contain the
            original request method in a redirect chain and, more importantly, is the
            method that will be used for the request created from the redirect
            if it is not overridden.
    
            * platform/network/qt/QNetworkReplyHandler.cpp:
            (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    afa452ab
QNetworkReplyHandler.cpp 17 KB