Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EmptyBody case #186

Merged
merged 1 commit into from
Aug 28, 2017
Merged

Add EmptyBody case #186

merged 1 commit into from
Aug 28, 2017

Conversation

suya55
Copy link
Contributor

@suya55 suya55 commented Aug 22, 2017

Fixes

add case EmptyBody case.

Purpose

Add EmptyBody case in CurlFormat trait.

Background Context

An error occurs when using the following code.

ws.url(url).withRequestFilter(AhcCurlRequestLogger()).withQueryStringParameters("hey" -> "yo").get()

References

I can't found in Google search and Github issues.

An error occurs when using the following code.
```
ws.url(url).withRequestFilter(AhcCurlRequestLogger()).withQueryStringParameters("hey" -> "yo").get()
```
Prevent throw exception EmptyBody case.
@marcospereira
Copy link
Member

Hi @suya55, thanks for that. #178 has this fix too. I will merge yours anyway since it smaller and backward compatible.

Again, thank you! :-)

@marcospereira marcospereira merged commit ac202f4 into playframework:master Aug 28, 2017
@avdv
Copy link

avdv commented Sep 27, 2017

Hi.

I just ran into this problem, and was hoping to fix it by upgrading to 1.1.1.

Now I realized that this fix is not backported and it still throws this exception for EmptyBody...

Could this be backported / merged to the 1.x.x branch? @gmethvin ?

marcospereira pushed a commit that referenced this pull request Oct 5, 2017
An error occurs when using the following code.
```
ws.url(url).withRequestFilter(AhcCurlRequestLogger()).withQueryStringParameters("hey" -> "yo").get()
```
Prevent throw exception EmptyBody case.
@marcospereira
Copy link
Member

Backport to 1.x.x: 0892a7e

@marcospereira marcospereira added this to the 1.1.2 milestone Oct 5, 2017
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.

3 participants