As per #2467759: Refactor drupal_process_attached() so it doesn't depend on drupal_add_http_header(), drupal_add_http_header is no longer in use in Drupal 8.

Affected code:

$ grep -R http_header .
./captcha/image_captcha/image_captcha.admin.inc:  drupal_add_http_header('Content-Type', 'image/png');

The code needs to be refactored.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb created an issue. See original summary.

Znak’s picture

Assigned: Unassigned » Znak
Znak’s picture

Assigned: Znak » Unassigned
Status: Active » Needs review
FileSize
805 bytes
sonvir249’s picture

Status: Needs review » Reviewed & tested by the community

Hi @Znak,

I checked your patch and it worked for me.
It removes the shown warnings when image captcha module is installed and uninstalled.

Thanks.

  • elachlan committed fddcc33 on 8.x-1.x authored by Znak
    Issue #2904994 by Znak: drupal_add_http_header is deprecated
    
elachlan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.