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

PostAsync default content null #515

Open
imtrobin opened this issue May 4, 2020 · 3 comments
Open

PostAsync default content null #515

imtrobin opened this issue May 4, 2020 · 3 comments

Comments

@imtrobin
Copy link

imtrobin commented May 4, 2020

Hi, just to inform, why not have it default as null if I want to postAsync with no body.

@tmenier
Copy link
Owner

tmenier commented May 7, 2020

You mean so you can do PostAsync() instead of PostAsync(null)? I'm good with this. Have you confirmed PostAsync(null) actually sends an empty body and doesn't throw or anything? I'll confirm too when I get to it, but was just curious where this enhancement lies on a scale of "simple" to "dead simple". :)

@imtrobin
Copy link
Author

imtrobin commented May 9, 2020

I'm doing PostAsync (null) in my code, and it works fine.

@tmenier tmenier added this to Backlog in Default Project via automation Sep 12, 2020
@tmenier tmenier moved this from Backlog to In Progress in Default Project Sep 12, 2020
@tmenier tmenier moved this from In Progress to Ready in Default Project Sep 28, 2020
@tmenier
Copy link
Owner

tmenier commented Oct 1, 2020

Ready in prerelease 5: https://www.nuget.org/packages/Flurl.Http/3.0.0-pre5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Default Project
  
Released
Development

No branches or pull requests

2 participants