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

Remove _noBody from Unity SDK request. #450

Merged
merged 1 commit into from
Feb 17, 2016
Merged

Remove _noBody from Unity SDK request. #450

merged 1 commit into from
Feb 17, 2016

Conversation

gfosco
Copy link
Contributor

@gfosco gfosco commented Feb 16, 2016

To fix #448.

if (req.body && req.body._noBody) {
// Unity SDK sends a _noBody key which needs to be removed.
// Unclear at this point if action needs to be taken.
delete req.body._noBody;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit. should we check in the unity SDK why?

@drew-gross
Copy link
Contributor

I agree with @flovilmart. Cautiously accepting, but I don't fully understand what _noBody was originally there for. I hope you do.

@flovilmart
Copy link
Contributor

Comes from here: https://github.com/ParsePlatform/Parse-SDK-dotNET/blob/f577ee38a0d55a199a473065b18acad084e4b083/ParseCommon/Internal/HttpClient/Unity/HttpClient.Unity.cs#L60

I'm no C# expert but looks like it's garbage and set just before a POST request is sent out.
It doesn't look ever read after in the SDK.

gfosco added a commit that referenced this pull request Feb 17, 2016
Remove _noBody from Unity SDK request.
@gfosco gfosco merged commit 6f29493 into master Feb 17, 2016
@gfosco gfosco deleted the fosco.noBody branch February 17, 2016 19:47
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.

invalid key name: _noBody
4 participants