<p dir="auto">Hello,<br>
I am working on project that requires :authority header. When I put that it throws errors!!!<br>
Please HELP ME!!!!!!</p>
<p dir="auto">My app is making a POST request enforcing some specific header fields. Among them, I was able to explicitly enforce a ":method" header field. But since 2.28.0, this now raises the following error:</p>
<p dir="auto"><code class="notranslate">requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header name: ':method'</code></p>
<p dir="auto">Enforcing this header field is possibly a widespread practice as this is part of the requirements for sending notifications through Apple's push notification servers.</p>