Skip to content

Commit

Permalink
Add user agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
szeber committed Jun 14, 2016
1 parent 231688a commit a45161b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ShoppinPal/Vend/Api/BaseApiAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ protected function getAuthenticatedRequestForUri($path, array $params = [], $ski

$request = Application::getInstance()->getDiContainer()->getCurlHttpRequest();
$request->setUrl($url);
$request->addHeader('User-Agent: Shoppinpal Vend PHP API v0.1.0');
if (!$skipContentType) {
$request->addHeader('Content-Type: application/json');
}
Expand Down

1 comment on commit a45161b

@pulkitsinghal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szeber and @pzurek hurray!

Please sign in to comment.