You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run command Invoke-RestMethod [URI] -Mehtod POST -ContentType 'application/json; charset=utf-8' -Body $body
Expected behavior
The command executes successfully
Actual behavior
Command fails with error:
Invoke-RestMethod : The format of value 'application/json; charset=utf-8' is
invalid.
If the contentype is set to 'application/json' only it works, but setting charset should be allowed, as it used to work on previous versions no problem.
Environment data
Steps to reproduce
Run command Invoke-RestMethod [URI] -Mehtod POST -ContentType 'application/json; charset=utf-8' -Body $body
Expected behavior
The command executes successfully
Actual behavior
Command fails with error:
Invoke-RestMethod : The format of value 'application/json; charset=utf-8' is
invalid.
If the contentype is set to 'application/json' only it works, but setting charset should be allowed, as it used to work on previous versions no problem.
Environment data
Ubuntu 16.04