When sending headers, send exact casing, don't lowercase
Bug
Running into an issue at company where we need to Authorization with a capital A but in the timeline it seems to be sent as a lowercase authorization. Then I checked the insomnia timeline and its correctly sent as capital Authorization. The call works in Insomnia but not in Yaak and I assume its for this reason.
Mac
Ya, unfortunately Rust doesn’t allow this, so there’s a longer term issue to switch to libcurl which does.
Understood, just wanted to share some info in case it's useful.
I was curious about this and did some digging. It looks like the
httpcrate used byreqwest/hyperlowercases headers by design, but the curl crate (Rust bindings tolibcurl) preserves header casing when you useHTTP/1.1.You probably already know this if you've looked into the
libcurloption. Just wanted to mention it in case it helps.For what it's worth,
HTTP/1.1seems fine for API testing since you're only sending one request at a time anyway. TheHTTP/2benefits like multiplexing really only matter when loading lots of resources in parallel. Maybe a settings option to choose HTTP/1.1 vs 2.0 could work, where 1.1 preserves header casing?AI gave me this example for using the curl crate but you probably have better way:
Totally understand if there are other factors making this complicated that I'm not seeing. Just thought I'd share what I found. Either way, really appreciate the tool! Very clean, well-designed, and minimal! This is seemingly the only issue blocking me from switching from insomnia.