@@ -95,8 +95,8 @@ public function doFileRequest(string $uri, array $params = [])
95
95
$ method = ($ params ) ? 'POST ' : 'GET ' ;
96
96
97
97
$ response = $ this ->guzzle ->request ($ method , $ uri , $ this ->getRequestOptions ($ params ));
98
- if ($ response ->getHeaderLine ('Content-Type ' ) !== 'application/zip ' ) {
99
- throw new ServerException (sprintf ('Response content type is not supported: %s ' , $ response ->getHeaderLine ('Content-Type ' )));
98
+ if ($ response ->getHeaderLine ('content-type ' ) !== 'application/zip ' ) {
99
+ throw new ServerException (sprintf ('Response content type is not supported: %s ' , $ response ->getHeaderLine ('content-type ' )));
100
100
}
101
101
return $ response ->getBody ()->getContents ();
102
102
} catch (\GuzzleHttp \Exception \ClientException $ exception ) {
@@ -135,10 +135,10 @@ private function getRequestOptions(array $requestData): array
135
135
'base_uri ' => sprintf ('%s://%s/%s/ ' , self ::SCHEME , self ::HOST , self ::PREFIX ),
136
136
RequestOptions::BODY => json_encode ($ requestData ),
137
137
RequestOptions::HEADERS => [
138
- 'Accept ' => 'application/json ' ,
139
- 'Content-Type ' => 'application/json ' ,
140
- 'Authorization ' => 'Bearer ' . $ this ->bearerToken ,
141
- 'User-Agent ' => $ this ->createUserAgent ()
138
+ 'accept ' => 'application/json ' ,
139
+ 'content-type ' => 'application/json ' ,
140
+ 'authorization ' => 'Bearer ' . $ this ->bearerToken ,
141
+ 'user-agent ' => $ this ->createUserAgent ()
142
142
]
143
143
];
144
144
}
@@ -157,4 +157,4 @@ private function createUserAgent(): string
157
157
php_sapi_name ()
158
158
);
159
159
}
160
- }
160
+ }
0 commit comments