@@ -339,11 +339,11 @@ function _authcache_get_http_status($default = 200) {
   return (int)_authcache_get_http_header($regex, $default);
 }
 
 function _authcache_get_http_header($regex, $default = NULL) {
   // The last header is the one that counts:
-  $headers = preg_grep($regex, explode("\n", drupal_set_header()));
+  $headers = preg_grep($regex, explode("\n", drupal_get_header()));
   if (!empty($headers) && preg_match($regex, array_pop($headers), $matches)) {
     return $matches[1]; // found it
   }
   return $default; // no such luck
 }

