? logs
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.756.2.80
diff -u -p -r1.756.2.80 common.inc
--- includes/common.inc	4 Mar 2010 00:25:13 -0000	1.756.2.80
+++ includes/common.inc	17 Mar 2010 17:00:46 -0000
@@ -144,6 +144,11 @@ function drupal_set_header($header = NUL
   // ends HTTP headers prematurely on some PHP versions.
   static $stored_headers = array();
 
+  // This line fixes strange characters in 403/404 output when proxied behind
+  // certain reverse-proxy engines, e.g. nginx.
+  // See: http://drupal.org/node/355170
+  $header = str_replace('HTTP/1.1', $_SERVER["SERVER_PROTOCOL"], $header);
+
   if (strlen($header)) {
     header($header);
     $stored_headers[] = $header;
