소스 검색

Merge pull request #10 from Vugario/with-header-return-this

withHeader method did not return the current instance.
Jan Oris 9 년 전
부모
커밋
7549fb1117
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Ixudra/Curl/Builder.php

+ 2 - 0
src/Ixudra/Curl/Builder.php

@@ -116,6 +116,8 @@ class Builder {
     public function withHeader($header)
     {
         $this->curlOptions[ 'HTTPHEADER' ][] = $header;
+
+        return $this;
     }
 
     /**