Skip to content

Commit 04eb823

Browse files
committed
RestApi: Reset curl handle options after every session
1 parent 91b10ac commit 04eb823

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/Jira/RestApi.php

+1
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ protected function request($method, $url, $body = null)
468468
}
469469

470470
$statusCode = \curl_getinfo($curl, CURLINFO_HTTP_CODE);
471+
curl_reset($curl);
471472
if ($statusCode === 401) {
472473
throw new RuntimeException(
473474
'Unable to authenticate, please check your API credentials'

0 commit comments

Comments
 (0)