Skip to content

fix ParseCloudFunction execute and executeObjectFunction headers fail #244

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

Merged
merged 1 commit into from
Aug 9, 2019
Merged

Conversation

hellokidder
Copy link
Contributor

hi ! brother,I'm come again !
today,When I used ParseCloudFunction, I encountered a problem, the headers parameter failed,and I fixed it.
code:

    final ParseCloudFunction parseCloud = ParseCloudFunction('functionName');
    final Map<String, String> params = <String, String>{
      'objectId': '5b625c781235522020dbbad9c',
    };
    final Map<String, String> headers = <String, String>{
      "content-type": 'application/json'
    };
    final ParseResponse result =
        await parseCloud.execute(parameters: params,headers: headers);

from
request.headers :{content-type: text/plain; charset=utf-8}
now
request.headers :{content-type: application/json; charset=utf-8}
and the function it's work

At last :look forward to your reply

Copy link
Member

@phillwiggins phillwiggins left a comment

Choose a reason for hiding this comment

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

Amazing, great work!

@phillwiggins phillwiggins merged commit a1780d2 into parse-community:release/1.0.23 Aug 9, 2019
fischerscode pushed a commit to fischerscode/Parse-SDK-Flutter that referenced this pull request Sep 5, 2020
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