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
Requests in yesod-test only support GET parameters in the format key=value. Bare GET parameters are not supported, and more importantly (for us), you cannot access GET API endpoints that require JSON in the query string.
The wai library supports these use cases by allowing you to supply Nothing for the value of the GET parameter. But yesod-test blocks this by supplying a hard-coded Just. It is hard to work around that restriction, because the RequestBuilderData type is not exported, even in the Internal module.
Note that this is not a problem for POST parameters, because of the postBody and setRequestBody functions.
Fixed by adding the addBareGetParam function in #1821 .
The text was updated successfully, but these errors were encountered:
Requests in yesod-test only support GET parameters in the format
key=value
. Bare GET parameters are not supported, and more importantly (for us), you cannot access GET API endpoints that require JSON in the query string.The wai library supports these use cases by allowing you to supply
Nothing
for the value of the GET parameter. But yesod-test blocks this by supplying a hard-codedJust
. It is hard to work around that restriction, because theRequestBuilderData
type is not exported, even in theInternal
module.Note that this is not a problem for POST parameters, because of the
postBody
andsetRequestBody
functions.Fixed by adding the
addBareGetParam
function in #1821 .The text was updated successfully, but these errors were encountered: