Merge pull request #3917 from oddnoc/httpresponse-return-values

Correct return statements in SS_HTTPResponse
This commit is contained in:
Daniel Hensby 2015-02-18 20:54:09 +00:00
commit baca51c9d0

View File

@ -161,6 +161,7 @@ class SS_HTTPResponse {
*/
public function setBody($body) {
$this->body = $body ? (string)$body : $body; // Don't type-cast false-ish values, eg null is null not ''
return $this;
}
/**
@ -191,7 +192,6 @@ class SS_HTTPResponse {
public function getHeader($header) {
if(isset($this->headers[$header]))
return $this->headers[$header];
return null;
}
/**