Closed stan-irl closed 1 year ago
Would you mind making a reproduction script that we can test with? Otherwise its hard to debug.
tried to repro and it works fine. obviously a problem on my end. sorry for the noise
ah its because I had HeaderValue::from_str()
in the make
field which returns a Result<HeaderValue, E>
, not a HeaderValue
Bug Report
Version
tower: 0.4.14 tower_http: 0.4.0
Platform
Crates
tower
tower-http
Description
I just tried to use
SetRequestHeaderLayer
to override my user agent but it looks like its incompatible with tower 0.4.xx. I downgraded tower to 0.3.xx and a lot of these errors disappeared:\
Workaround
I just whipped up some quick and dirty middleware to add the header: