You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a server sends Content-Type: something, then resp.content_type() returns None because embedded_svc asks for content-type and EspHttpResponse does a case-sensitive search:
EspHttpResponse defines headers as
BTreeMap<String, String>
:esp-idf-svc/src/http/client.rs
Lines 314 to 317 in a39c119
If a server sends
Content-Type: something
, thenresp.content_type()
returnsNone
because embedded_svc asks forcontent-type
andEspHttpResponse
does a case-sensitive search:esp-idf-svc/src/http/client.rs
Lines 337 to 339 in a39c119
I think the fix is replacing the
String
key with something likeUncased
The text was updated successfully, but these errors were encountered: