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
Yeah, this is a known thing, but something I haven't gotten around to sorting out. The HTTP headers shouldn't even be managed by this project really, I did start a more comprehensive version in contrib: https://github.com/purescript-contrib/purescript-http-headers but it needs plenty of work too.
Being able to pattern match on the headers is quite useful, so hiding the constructor and just providing a smart constructor that will ensure that the types are canonicalised isn't ideal, so maybe we either need to provide a canoncialiseHeader function, or perhaps a CanoncialHeader type that can be matched on or something like that.
The way the
RequestHeader
type is built brings up some possibly undefined edge cases. For example, this returnsfalse
:And are these the same?
affjax $ defaultRequest { headers = [ ContentType applicationJSON ] }
The text was updated successfully, but these errors were encountered: