Skip to content

Commit 3fad904

Browse files
Merge pull request #99 from matks/matks-patch-1
Handle lowercase psws-version header
2 parents 5ec67ad + 20f7f60 commit 3fad904

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PSWebServiceLibrary.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ protected function executeRequest($url, $curl_params = array())
211211
}
212212
}
213213

214+
if (!array_key_exists('PSWS-Version', $headerArray) && array_key_exists('psws-version', $headerArray)) {
215+
$headerArray['PSWS-Version'] = $headerArray['psws-version'];
216+
}
217+
214218
if (array_key_exists('PSWS-Version', $headerArray)) {
215219
$this->version = $headerArray['PSWS-Version'];
216220
if (

0 commit comments

Comments
 (0)