We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9797c74 commit f442c69Copy full SHA for f442c69
1 file changed
src/DatingVIP/API/Client.php
@@ -55,6 +55,14 @@ class Client
55
*/
56
protected $cookie = false;
57
58
+ /**
59
+ * User-Agent string
60
+ *
61
+ * @var string $user_agent [= 'DatingVIP-API/1.0.10']
62
+ * @access protected
63
+ */
64
+ protected $user_agent = 'DatingVIP-API/1.0.10';
65
+
66
/**
67
* Instance of DatingVIP\cURL\Request lib.
68
*
@@ -183,6 +191,10 @@ private function curl()
183
191
$this->curl->setCookieStorage($this->cookie);
184
192
}
185
193
194
+ if ($this->user_agent) {
195
+ $this->curl->setUseragent($this->user_agent);
196
+ }
197
186
198
return $this->curl->setTimeout($this->timeout);
187
199
188
200
0 commit comments