Skip to content

Commit 0820b8c

Browse files
BIG-17565 Add function to remove a header from Connection object.
1 parent 15aaf1b commit 0820b8c

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)