File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function __construct(
44
44
) {
45
45
$ this ->http = $ httpClient ?? HttpAsyncClientDiscovery::find ();
46
46
$ this ->requestFactory = $ requestFactory ?? MessageFactoryDiscovery::find ();
47
- $ this ->headers ['User-Agent ' ] = 'petfinder-php-sdk/v1.0 (https://github.com/petfinder-com/petfinder-php-sdk) ' ;
47
+ $ this ->headers ['X-Api-Sdk ' ] = 'petfinder-php-sdk/v1.0 (https://github.com/petfinder-com/petfinder-php-sdk) ' ;
48
48
}
49
49
50
50
public function getHttpClient (): HttpAsyncClient
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function testHeaders(): void
120
120
$ this ->builder ->getHttpClient ()->sendAsyncRequest (new Request ('GET ' , '/test ' ));
121
121
$ this ->assertEquals ('bar ' , $ this ->http ->getLastRequest ()->getHeaderLine ('X-Foo ' ));
122
122
$ this ->assertEquals ('foo ' , $ this ->http ->getLastRequest ()->getHeaderLine ('X-Bar ' ));
123
- $ this ->assertEquals ('petfinder-php-sdk/v1.0 (https://github.com/petfinder-com/petfinder-php-sdk) ' , $ this ->http ->getLastRequest ()->getHeaderLine ('User-Agent ' ));
123
+ $ this ->assertEquals ('petfinder-php-sdk/v1.0 (https://github.com/petfinder-com/petfinder-php-sdk) ' , $ this ->http ->getLastRequest ()->getHeaderLine ('X-Api-Sdk ' ));
124
124
125
125
$ this ->builder ->addHeaders (['X-Baz ' => 'baz ' ]);
126
126
You can’t perform that action at this time.
0 commit comments