Skip to content

Commit 1b0302d

Browse files
committed
Merge pull request #140 from bc-ravijayaramappa/BIG-17565
BIG-17565 Add function to remove a header from Connection object.
2 parents 15aaf1b + 0820b8c commit 1b0302d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Bigcommerce/Api/Connection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ public function addHeader($header, $value)
164164
$this->headers[$header] = "$header: $value";
165165
}
166166

167+
/**
168+
* Remove a header from the request.
169+
* @param string $header
170+
*/
171+
public function removeHeader($header)
172+
{
173+
unset($this->headers[$header]);
174+
}
175+
167176
/**
168177
* Get the MIME type that should be used for this request.
169178
*/

0 commit comments

Comments
 (0)