Skip to content

Commit

Permalink
removes user agent string from class scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacon36 committed Dec 19, 2023
1 parent 7d9dca6 commit f92cacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Otis.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class Otis {
*/
public function __construct() {
$this->ch = curl_init();
$this->ua = 'Otis-PHP/' . $this->wp_otis_version();
$user_agent = 'Otis-PHP/' . $this->wp_otis_version();

curl_setopt( $this->ch, CURLOPT_USERAGENT, $this->ua );
curl_setopt( $this->ch, CURLOPT_USERAGENT, $user_agent );
curl_setopt( $this->ch, CURLOPT_HEADER, false );
curl_setopt( $this->ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $this->ch, CURLOPT_CONNECTTIMEOUT, 30 );
Expand Down

0 comments on commit f92cacb

Please sign in to comment.