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:
@@ -106,7 +106,7 @@ impl Request {
|
||||
&self.agent,
|
||||
&self.method,
|
||||
&url,
|
||||
&self.headers,
|
||||
self.headers,
|
||||
&reader,
|
||||
deadline,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user