Skip to content

Commit bae06c5

Browse files
committed
Updated request header
Added a default user agent header so RemoveBg platform can gain more insight to api usage
1 parent f61cdb1 commit bae06c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RemoveBg.php

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function __construct($apiKey = '', $headers = [])
8484
$this->returnFormat = 'raw';
8585
$this->endpoint = 'https://api.remove.bg/v1.0/removebg';
8686
$this->headers = $headers;
87+
$this->header('User-Agent', 'Mtownsend/RemoveBg (github.com/mtownsend5512/remove-bg)');
8788
$this->requestOptions = [
8889
'http_errors' => false,
8990
'decode_content' => false

0 commit comments

Comments
 (0)