diff options
-rw-r--r-- | modules/image/image.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/image/image.module b/modules/image/image.module index c6a23f25a..585c15a29 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -854,6 +854,7 @@ function image_style_deliver($style, $scheme) { // Tell client to retry again in 3 seconds. Currently no browsers are known // to support Retry-After. drupal_add_http_header('Status', '503 Service Unavailable'); + drupal_add_http_header('Content-Type', 'text/html; charset=utf-8'); drupal_add_http_header('Retry-After', 3); print t('Image generation in progress. Try again shortly.'); drupal_exit(); @@ -875,6 +876,7 @@ function image_style_deliver($style, $scheme) { else { watchdog('image', 'Unable to generate the derived image located at %path.', array('%path' => $derivative_uri)); drupal_add_http_header('Status', '500 Internal Server Error'); + drupal_add_http_header('Content-Type', 'text/html; charset=utf-8'); print t('Error generating image.'); drupal_exit(); } |