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
parseRequest is cool, but it optionally takes a method before the URL, which makes the "easy thing" allow for changing the method unexpectedly if given user input. This is surprising.
I wrote something like this:
parseRequest'::MonadThrowm=>Text->mRequest
parseRequest' uri =
requestFromURI
=<<maybe
(throwM . stringException $"bad URI")
pure
(parseURI (unpack uri))
This is fine, but it's surprising that there's not a version of this in http-client, which probably allows for accidentally messing with methods in programs that don't check the URLs that go into parseRequest.
The text was updated successfully, but these errors were encountered:
parseRequest
is cool, but it optionally takes a method before the URL, which makes the "easy thing" allow for changing the method unexpectedly if given user input. This is surprising.I wrote something like this:
This is fine, but it's surprising that there's not a version of this in http-client, which probably allows for accidentally messing with methods in programs that don't check the URLs that go into
parseRequest
.The text was updated successfully, but these errors were encountered: