summaryrefslogtreecommitdiff
path: root/modules/image/image.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image/image.module')
-rw-r--r--modules/image/image.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/image/image.module b/modules/image/image.module
index 3e43ed5f5..603c336b1 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -453,8 +453,8 @@ function image_style_generate() {
if (!$lock_acquired) {
// Tell client to retry again in 3 seconds. Currently no browsers are known
// to support Retry-After.
- drupal_set_header('503 Service Unavailable');
- drupal_set_header('Retry-After', 3);
+ drupal_add_http_header('503 Service Unavailable');
+ drupal_add_http_header('Retry-After', 3);
print t('Image generation in progress, please try again shortly.');
exit();
}
@@ -474,7 +474,7 @@ function image_style_generate() {
}
else {
watchdog('image', 'Unable to generate the derived image located at %path.', $destination);
- drupal_set_header('500 Internal Server Error');
+ drupal_add_http_header('500 Internal Server Error');
print t('Error generating image.');
exit();
}