Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By teksimian on
when attempting to set a content-type header with;
drupal_set_header('Content-type: text/plain; charset=utf-8');
it appends my header to the already preexisting text/html content-type header.
the api documentation explicitly talks about setting content-type, so im a little confused.
any help would be appreciated.