Closed kroe761 closed 3 years ago
Dup of: #337, #576
I've tried this code, and it still results in 'App-Token' as the key in the header
HTTP.headers({"app_token" => "some-guid-token"})
.post("https://service.mycompany.net/",
json: { key: "value"})
There's a monkeypatch here:
https://github.com/httprb/http/issues/337#issuecomment-550412661
Otherwise #576 is a more permanent but unreleased fix.
Works perfectly! Thank you!
I am trying to create a POST request that contains the key
app_token
in the header. My codeHowever, when I make my call, I am notified that app_token was not proved. Looking at the
req
inHTTP::Client.request
, I see that the header has been converted toApp-Token
. This is causing my request to fail. Is there a workaround? We are using version 4.4.1.