koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
3.9k stars 237 forks source link

tapo: normalize fetch header case #1472

Closed xdissent closed 1 month ago

xdissent commented 1 month ago

Fixes two-way audio on tapo cameras that require case-sensitive http headers.

koush commented 1 month ago

I think respecting the caller's initial casing is the better fix here:

https://github.com/koush/scrypted/commit/a807766699a5245ea7f550a1e6963b1163705634

xdissent commented 1 month ago

Ah, yeah that could work but needs to be done in authHttpFetch too. That creates a Headers immediately and then calls httpFetch() with just the Headers obj.