Allows the use of arbitrary Content-type header when sending POST requests from WordPress.
Playground fetch() network transport for wp_safe_remote_* calls enforced the Content-Type header of application/x-www-form-urlencoding when POST-ing. This PR turns that value into a fallback that's only used if not explicit value is provided.
Allows the use of arbitrary Content-type header when sending POST requests from WordPress.
Playground fetch() network transport for
wp_safe_remote_*
calls enforced theContent-Type
header ofapplication/x-www-form-urlencoding
when POST-ing. This PR turns that value into a fallback that's only used if not explicit value is provided.Closes https://github.com/WordPress/wordpress-playground/issues/1428
Testing instructions
text/plain