Changeset 8225
- Timestamp:
- 04/03/08 12:34:07 (5 months ago)
- Files:
-
- branches/1.1/lib/util/sfBrowser.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/util/sfBrowser.class.php
r7614 r8225 31 31 $vars = array(), 32 32 $defaultServerArray = array(), 33 $headers = array(), 33 34 $currentException = null; 34 35 … … 89 90 { 90 91 $this->vars[$name] = $value; 92 93 return $this; 94 } 95 96 /** 97 * Sets a HTTP header for the very next request. 98 * 99 * @param string The header name 100 * @param string The header value 101 */ 102 public function setHttpHeader($header, $value) 103 { 104 $this->headers[$header] = $value; 91 105 92 106 return $this; … … 188 202 } 189 203 204 foreach ($this->headers as $header => $value) 205 { 206 $_SERVER['HTTP_'.strtoupper(str_replace('-', '_', $header))] = $value; 207 } 208 $this->headers = array(); 209 190 210 // request parameters 191 211 $_GET = $_POST = array();