Issue #2249723 by andrei.dincu: Replace drupal_add_http_header() and drupal_send_headers() with D8 code