commit a75e5a176fd46d57104d6038cef2a59465ccc634
Author: Tim Rohaly <tr@202830.no-reply.drupal.org>
Date:   Tue Mar 22 10:12:48 2011 -0700

    Issue #1101500 by tomas.teicher: drupal_set_header() was renamed drupal_add_http_header() for D7.

diff --git a/payment/uc_cybersource/uc_cybersource.module b/payment/uc_cybersource/uc_cybersource.module
index c1ad9cd..eafbdb3 100644
--- a/payment/uc_cybersource/uc_cybersource.module
+++ b/payment/uc_cybersource/uc_cybersource.module
@@ -117,7 +117,7 @@ function uc_cybersource_uc_payment_gateway() {
 function uc_cybersource_hop_post() {
   if (!uc_cybersource_hop_include()) {
     watchdog('uc_cybersource_hop', 'Unable to receive HOP POST due to missing or unreadable HOP.php file.', array(), 'error');
-    drupal_set_header('HTTP/1.1 503 Service unavailable');
+    drupal_add_http_header('HTTP/1.1 503 Service unavailable');
     drupal_set_title(t('Unable to receive HOP POST.'));
     print t('The site was unable to receive a HOP post because of a missing or unreadble HOP.php');
     exit();
diff --git a/payment/uc_google_checkout/uc_google_checkout.module b/payment/uc_google_checkout/uc_google_checkout.module
index 391a1d2..6161021 100644
--- a/payment/uc_google_checkout/uc_google_checkout.module
+++ b/payment/uc_google_checkout/uc_google_checkout.module
@@ -1170,7 +1170,7 @@ function uc_google_checkout_cancel_order($order) {
 }
 
 function uc_google_checkout_notification_acknowledgement($serial_number) {
-  drupal_set_header('200 OK');
+  drupal_add_http_header('200 OK');
   print '<?xml version="1.0" encoding="UTF-8"?>';
   print "\n";
   print '<notification-acknowledgment xmlns="http://checkout.google.com/schema/2" serial-number="' . $serial_number . '" />';
@@ -1181,7 +1181,7 @@ function uc_google_checkout_notification_error($message = NULL) {
   if (is_null($message)) {
     $message = t('Unknown order id or malformed XML.');
   }
-  drupal_set_header('400 Bad Request');
+  drupal_add_http_header('400 Bad Request');
   watchdog('google', '!message', array('!message' => $message), WATCHDOG_ERROR);
   exit();
 }
diff --git a/payment/uc_google_checkout/uc_google_checkout.pages.inc b/payment/uc_google_checkout/uc_google_checkout.pages.inc
index 6146e77..0d0da84 100644
--- a/payment/uc_google_checkout/uc_google_checkout.pages.inc
+++ b/payment/uc_google_checkout/uc_google_checkout.pages.inc
@@ -126,12 +126,12 @@ function uc_google_checkout_merchant_calculation() {
     $response .= '</results>';
     $response .= '</merchant-calculation-results>';
 
-    drupal_set_header('HTTP/1.1 200 OK');
+    drupal_add_http_header('HTTP/1.1 200 OK');
     print $response;
     exit();
   }
 
-  drupal_set_header('HTTP/1.1 204 No Content');
+  drupal_add_http_header('HTTP/1.1 204 No Content');
   exit();
   // So there!
 }
diff --git a/uc_reports/uc_reports.module b/uc_reports/uc_reports.module
index 3bedb8f..0a5f902 100644
--- a/uc_reports/uc_reports.module
+++ b/uc_reports/uc_reports.module
@@ -267,7 +267,7 @@ function _uc_reports_get_csv($report_id, $user_id) {
     );
     foreach ($http_headers as $header => $value) {
       $value = preg_replace('/\r?\n(?!\t| )/', '', $value);
-      drupal_set_header($header, $value);
+      drupal_add_http_header($header, $value);
     }
 
     print $csv_data->data;
