Skip to content

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