Skip to content

Commit

Permalink
Merge pull request #140 from bc-ravijayaramappa/BIG-17565
Browse files Browse the repository at this point in the history
BIG-17565 Add function to remove a header from Connection object.
  • Loading branch information
aleachjr committed May 6, 2015
2 parents 15aaf1b + 0820b8c commit 1b0302d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Bigcommerce/Api/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ public function addHeader($header, $value)
$this->headers[$header] = "$header: $value";
}

/**
* Remove a header from the request.
* @param string $header
*/
public function removeHeader($header)
{
unset($this->headers[$header]);
}

/**
* Get the MIME type that should be used for this request.
*/
Expand Down

0 comments on commit 1b0302d

Please sign in to comment.