[fix #983] Set the correct HTTP protocol in sitemap response

Fix issue #983 : use a server variable to set the correct HTTP protocol for xml sitemaps requests.
Writing HTTP protocol in plain text can raise response body corruption (see [this comment](http://www.php.net/manual/en/function.header.php#92305) on php.net `header` function page).