Requests
Requests copied to clipboard
Referer isn't consistently set across transports
Why is the referer set to same URL being requested?
It's apparently causing some trouble in WordPress, see https://core.trac.wordpress.org/ticket/37820
It does this because SimplePie did it, and Requests took compatibility hints from there. It's been in there since forever.
We should change this to be a parameter, default it to '', and use the history stuff as well.
IMO you shouldn't set the referer header at all. It's optional in the HTTP spec, and in fact "MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard"
Anything currently preventing this from being changed?