Skip to content

Commit

Permalink
Fixed bug where headers wasn't sent properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mekwall committed May 31, 2011
1 parent e40ee68 commit 648eaea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Milk/IO/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ class Response {
**/
public function send() {
$this->addHeaders(array(
'Status', $this->status_code,
'Content-Type', $this->content_type
'Status' => $this->status_code,
'Content-Type' => $this->content_type,
'X-Powered-By' => "Milk"
));
foreach ($this->headers as $header)
if (!$header->sent)
Expand Down Expand Up @@ -217,6 +218,6 @@ public function __construct($name, $values) {

public function send() {
$this->sent = true;
header($this->name, implode(',', $this->values));
header($this->name.": ".implode(',', $this->values));
}
}

0 comments on commit 648eaea

Please sign in to comment.