Move auth header on redirect to unit construction

The auth header stripping was in the wrong place (when serializing the request),
rather than in the construction of the Unit, where it ought to be.

This also makes redirect header retention testable.
This commit is contained in:
Martin Algesten
2021-12-11 09:03:49 +01:00
parent f941717a5d
commit 2b0eca9827
3 changed files with 144 additions and 37 deletions

View File

@@ -106,7 +106,7 @@ impl Request {
&self.agent,
&self.method,
&url,
&self.headers,
self.headers,
&reader,
deadline,
);