Issue #2249723 by andrei.dincu: Replace drupal_add_http_header() and drupal_send_headers() with D8 code
Issue #2249723 by andrei.dincu: Use D8 wrappers to access server global array values in xmlsitemap.module