-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect bugfix #747
base: master
Are you sure you want to change the base?
Redirect bugfix #747
Conversation
Ideally meet the two use cases! Needs test writes test to pass by the two conditions. |
I do not think that tests may be writed. because problem displayed -- when we using complex Front-End (example as Mozilla Firefox.. but NOT curl) or complex system of back-end wrappers. see next :) easy examplesee HTTP header if back-end will use this HTTP header:
that Mozilla Firefox (v37++) will use 443-port (and BUT on front-end side (in User Interface of Mozilla Firefox, AND for Javascript-Files, and for CSS-files, and for GUI URL Field) -- we will see this easy example shows us -- that back-end and front-end -- may has different information about URL. BUT when back-end will do |
Uhm... http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 "The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI." |
@defnull , OK ! if relative-URL-path (in redirect) is conflicted with RFC.. I think will be fairly (rightly) to reject this pull-request #747 (and same issue:#748). I sure that in real life (in modern time) -- relative-URL may be used (and it used! yes) in http-redirects. because relative-URL in http-redirects purposely not prone to problems . but conflicting with RFC -- it strong reason too. I will respect any your decision about accept-or-reject relative http-redirects in Bottle! |
and what about adding new keyword-argument in example:
IMHO, that's will be great! :) |
@defnull , very very sorry for my many comments :( .. but yet comment. http://tools.ietf.org/html/rfc7231#section-7.1.2 *** begin of quote *** The "Location" header field is used in some responses to refer to a
The field value consists of a single URI-reference. When it has the *** end of quote *** |
Oh, okay. RFC7231 obsoletes RFC2616 and is more recent. In that case the change should really be discussed (perhaps in a new issue). I'll open one, just a second. |
Please merge this, it's still causing pain 😢 |
tiny but important fix: