Changeset 23984
- Timestamp:
- 11/15/09 20:54:59 (3 years ago)
- Files:
-
- branches/1.0/lib/response/sfWebResponse.class.php (modified) (2 diffs)
- branches/1.2/lib/response/sfWebResponse.class.php (modified) (2 diffs)
- branches/1.3/lib/response/sfWebResponse.class.php (modified) (1 diff)
- branches/1.4/lib/response/sfWebResponse.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/response/sfWebResponse.class.php
r23543 r23984 260 260 public function sendHttpHeaders() 261 261 { 262 $headers = $this->getParameterHolder()->getAll('symfony/response/http/headers') 263 262 264 // status 263 265 $status = 'HTTP/1.0 '.$this->statusCode.' '.$this->statusText; 264 266 header($status); 265 267 268 if (substr(php_sapi_name(), 0, 3) == 'cgi') 269 { 270 // fastcgi servers cannot send this status information because it was sent by them already due to the HTT/1.0 line 271 // so we can safely unset them. see ticket #3191 272 unset($headers['Status']); 273 } 274 266 275 if (sfConfig::get('sf_logging_enabled')) 267 276 { … … 270 279 271 280 // headers 272 foreach ($ this->getParameterHolder()->getAll('symfony/response/http/headers')as $name => $value)281 foreach ($headers as $name => $value) 273 282 { 274 283 header($name.': '.$value); branches/1.2/lib/response/sfWebResponse.class.php
r17749 r23984 335 335 header($status); 336 336 337 if (substr(php_sapi_name(), 0, 3) == 'cgi') 338 { 339 // fastcgi servers cannot send this status information because it was sent by them already due to the HTT/1.0 line 340 // so we can safely unset them. see ticket #3191 341 unset($this->headers['Status']); 342 } 343 337 344 if ($this->options['logging']) 338 345 { … … 345 352 $this->setContentType($this->options['content_type']); 346 353 } 354 347 355 foreach ($this->headers as $name => $value) 348 356 { branches/1.3/lib/response/sfWebResponse.class.php
r23720 r23984 336 336 header($status); 337 337 338 if (substr(php_sapi_name(), 0, 3) == 'cgi') 339 { 340 // fastcgi servers cannot send this status information because it was sent by them already due to the HTT/1.0 line 341 // so we can safely unset them. see ticket #3191 342 unset($this->headers['Status']); 343 } 344 338 345 if ($this->options['logging']) 339 346 { branches/1.4/lib/response/sfWebResponse.class.php
r23720 r23984 336 336 header($status); 337 337 338 if (substr(php_sapi_name(), 0, 3) == 'cgi') 339 { 340 // fastcgi servers cannot send this status information because it was sent by them already due to the HTT/1.0 line 341 // so we can safely unset them. see ticket #3191 342 unset($this->headers['Status']); 343 } 344 338 345 if ($this->options['logging']) 339 346 {