Bug 113426 - [Regression] WebkitGTK 1.11.x - temporary redirect location is saved
Summary: [Regression] WebkitGTK 1.11.x - temporary redirect location is saved
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-27 11:00 PDT by Maciej Piechotka
Modified: 2013-03-27 11:00 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2013-03-27 11:00:56 PDT
When HTTP 307 code is returned as in http://dynamic.xkcd.com/random/comic/ the location is saved and each subsequent request goes to the location it was redirected to:

This is against recommendation of RFC 2616: "Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests."(https://tools.ietf.org/html/rfc2616#page-65) and it breaks some websites (including xkcd).

Full header reply (as captured from Firefox):
HTTP/1.1 307 Temporary Redirect
Connection: close
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Date: Wed, 27 Mar 2013 17:56:27 GMT
Location: http://xkcd.com/1054/
Server: Happstack/0.4.1
Set-Cookie: seen_comics="[1054,73]";Max-Age=604800000000;Path=/;Version="1"