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
When running tests for one of my libraries, I tried to print the responseHeaders from a Response and got the following:
Response headers:
TypeError: s.replace is not a function
at exports.showStringImpl (/home/thimotron/Programming/purescript-simple-request/output/Prelude/foreign.js:23
1:19)
I tracked it down to the fact that the responseHeaders in question had a "set-cookie" key with an Array String value.
The text was updated successfully, but these errors were encountered:
That would be better than what we have now. Since we know it's either String or Array String, though, I think I'd rather define a foreign type HeaderValue or something, and then provide a function HeaderValue -> Either String (Array String). Also open to other suggestions.
When running tests for one of my libraries, I tried to print the responseHeaders from a Response and got the following:
I tracked it down to the fact that the responseHeaders in question had a "set-cookie" key with an Array String value.
The text was updated successfully, but these errors were encountered: