Skip to content

Commit 2cab85c

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/Jira/RestApi.php

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

470470
$statusCode = \curl_getinfo($curl, CURLINFO_HTTP_CODE);
471+
472+
// Since this is a persistent curl handle, reset its options after every session
473+
curl_reset($curl);
471474
if ($statusCode === 401) {
472475
throw new RuntimeException(
473476
'Unable to authenticate, please check your API credentials'

0 commit comments

Comments
 (0)