Skip to content
Browse files

Merge pull request #9 from alexbilbie/patch-1

Made http_header() chainable
  • Loading branch information...
2 parents eae110e + 0fb4a75 commit d4a70f3595a497cd6f8b219d4b5741a7a333e588 @philsturgeon committed Feb 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 libraries/Curl.php
View
1 libraries/Curl.php
@@ -177,6 +177,7 @@ public function set_cookies($params = array())
public function http_header($header, $content = NULL)
{
$this->headers[] = $content ? $header . ': ' . $content : $header;
+ return $this;
}
public function http_method($method)

0 comments on commit d4a70f3

Please sign in to comment.
Something went wrong with that request. Please try again.