XML Sitemap : broken XML file [closed]

This seams to be an issue with the header('HTTP/1.1 200 OK') function call in Yoast’s WordPress SEO plugin that is not compatible with my server configuration (Nginx with some security config in front, then apache for php processing).

In some way I do not fully understand, this php function call was forcing the server to send an HTTP/1.1 header with a HTTP/1.0 encoded body, so the end of the response header was interpreted as the beginning of the body.

Checkout the issue I have created on wordpress-seo github repo for more information.