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

Fix: add Content-Type and Transfer-Encoding to matchfunction:run POST request #1530

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

mikeseese
Copy link
Contributor

@mikeseese mikeseese commented Jan 18, 2023

What this PR does / Why we need it:

The HTTP POST request to run the Match Function (/v1/matchfunction:run) currently has no Content-Type header on it. This prevents parsing utils (such as https://www.npmjs.com/package/body-parser) from automatically being able to parse the JSON body. This PR adds the missing Content-Type header as well as the Transfer-Encoding header.

Which issue(s) this PR fixes:
There is no associated issue for this.

Special notes for your reviewer:
Here is the Slack conversation about this issue: https://open-match.slack.com/archives/CCD3H0L2D/p1673486707254609

Copy link
Contributor

@mridulji mridulji left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@mridulji mridulji merged commit 50b4063 into googleforgames:main Jan 27, 2023
@mridulji mridulji added this to the v1.7.0 milestone Feb 10, 2023
@mridulji mridulji added good first issue Good for newcomers area/developer-experience This issue impacts developer experience when building a Matchmaker using Open Match area/refinement labels Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/developer-experience This issue impacts developer experience when building a Matchmaker using Open Match area/refinement good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants