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

Conditionally set Content-Type header #1456

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

jhendrixMSFT
Copy link
Member

When the body param is optional, the Content-Type header should be set IFF the body param is not nil.
Don't expose optional Content-Type literal params as flags.

Fixes #1444

When the body param is optional, the Content-Type header should be set
IFF the body param is not nil.
Don't expose optional Content-Type literal params as flags.
@jhendrixMSFT
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jhendrixMSFT
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jhendrixMSFT
Copy link
Member Author

jhendrixMSFT commented Oct 29, 2024

@benbp part of the PR has been consistently failing with error "fatal: couldn't find remote ref refs/pull/1456/merge". Have you seen this before?

This originally was passing. I restarted it as the CLA check was stuck.

@jhendrixMSFT jhendrixMSFT merged commit cb77fd6 into Azure:main Oct 29, 2024
8 checks passed
@jhendrixMSFT jhendrixMSFT deleted the tsp-content-type branch October 29, 2024 17:49
@benbp
Copy link
Member

benbp commented Oct 29, 2024

@jhendrixMSFT not sure, though looks like you did get a passing CI run eventually

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.

Optional body params should conditionally set Content-Type header
3 participants