Invoke-RestMethod doesn't include automatic ContentType value when not using POST method #16318
Open
5 tasks done
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Steps to reproduce
When using a POST, ContentType is automatically set to
application/x-www-form-urlencodedWhen using other methods, it is not. It is blank.
Expected behavior
I would expect that the content type would default to form encoded for all request methods (or at least for PUT).Actual behavior
It is only set to form encoded for POST.Error details
No errors.Environment data
The text was updated successfully, but these errors were encountered: