Skip to content

Commit

Permalink
connection close removal (#4400)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Feb 1, 2024
1 parent a4d93c8 commit 63ab1e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apiFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1390,8 +1390,7 @@ function xml_post(string $url, string $post) : ?SimpleXMLElement {
CURLOPT_POSTFIELDS => $post,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/xml",
'Connection: close')
"Accept: application/xml")
]);
$output = (string) @curl_exec($ch);
$xml = @simplexml_load_string($output);
Expand Down Expand Up @@ -1502,7 +1501,7 @@ function query_adsabs(string $options) : object {
. ".adsabs.harvard.edu/v1/search/query"
. "?q=$options&fl=arxiv_class,author,bibcode,doi,doctype,identifier,"
. "issue,page,pub,pubdate,title,volume,year";
$curl_opts=[CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . PHP_ADSABSAPIKEY, 'Connection: close'],
$curl_opts=[CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . PHP_ADSABSAPIKEY],
CURLOPT_HEADER => TRUE,
CURLOPT_URL => $adsabs_url];
$response = Bibcode_Response_Processing($curl_opts, $adsabs_url);
Expand Down

0 comments on commit 63ab1e2

Please sign in to comment.