Skip to content

Conversation

@msakai
Copy link
Contributor

@msakai msakai commented Jun 4, 2015

requestBuilder function allows queryString of a Request not to begin with "?" character, and it inserts "?" when necessary.

getUri should do the same thing. Otherwise applyCheckStatus in Network.Client.Core module can produce StatusCodeException with wrong URI in its "X-Request-URL" field in such a case. I encountered the problem with influxdb package.

requestBuilder function allows queryString of a Request not to
begin with "?" character, and it inserts "?" when necessary.

getUri should do the same thing. Otherwise applyCheckStatus
in Network.Client.Core module can produce StatusCodeException
with wrong URI in its "X-Request-URL" field in such a case.
I encountered the problem with influxdb package.
snoyberg added a commit that referenced this pull request Jun 5, 2015
Fix getUri to insert "?" to uriQuery when necessary.
@snoyberg snoyberg merged commit 709fa58 into snoyberg:master Jun 5, 2015
@snoyberg
Copy link
Owner

snoyberg commented Jun 5, 2015

Good catch, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants