Skip to content

Commit

Permalink
Use https when access export.arxiv.org (#3216)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyugao authored Jan 5, 2024
1 parent 8cc91dc commit c73db0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arXiv.org.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 12,
"browserSupport": "gcsibv",
"lastUpdated": "2022-05-12 01:25:32"
"lastUpdated": "2024-01-05 12:21:40"
}

/*
Expand Down Expand Up @@ -111,7 +111,7 @@ function doWeb(doc, url) {

var urls = [];
for (var id in items) {
urls.push('http://export.arxiv.org/oai2'
urls.push('https://export.arxiv.org/oai2'
+ '?verb=GetRecord&metadataPrefix=oai_dc'
+ '&identifier=oai%3AarXiv.org%3A' + encodeURIComponent(id)
);
Expand All @@ -137,7 +137,7 @@ function doWeb(doc, url) {
}
if (!id) throw new Error('Could not find arXiv ID on page.');
id = id.trim().replace(/^arxiv:\s*|v\d+|\s+.*$/ig, '');
var apiurl = 'http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc'
var apiurl = 'https://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc'
+ '&identifier=oai%3AarXiv.org%3A' + encodeURIComponent(id);
ZU.doGet(apiurl, parseXML);
}
Expand Down

0 comments on commit c73db0a

Please sign in to comment.