Always clean body on HEAD request

This commit is contained in:
PJ Dietz 2014-07-14 01:01:15 -04:00
parent ecb58c11b8
commit 1e32c66cb5
1 changed files with 1 additions and 3 deletions

View File

@ -113,10 +113,8 @@ abstract class Handler implements HandlerInterface
// The default function calls the instance's get() method, then sets // The default function calls the instance's get() method, then sets
// the resonse's body member to an empty string. // the resonse's body member to an empty string.
$this->get(); $this->get();
if ($this->response->getStatusCode() == 200) {
$this->response->setBody('', false); $this->response->setBody('', false);
} }
}
/** /**
* Method for handling HTTP POST requests. * Method for handling HTTP POST requests.