Skip to content

Commit 0175104

Browse files
committed
#505 switching to https for all NCBI utils traffic.
1 parent d85f28a commit 0175104

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/ProteinSequence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public void setParentDNASequence(AbstractSequence<NucleotideCompound> parentDNAS
153153
}
154154

155155
private DNASequence getRawParentSequence(String accessId) throws IOException {
156-
String seqUrlTemplate = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=%s&rettype=fasta&retmode=text";
156+
String seqUrlTemplate = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=%s&rettype=fasta&retmode=text";
157157
URL url = new URL(String.format(seqUrlTemplate, accessId));
158158

159159
logger.trace("Getting parent DNA sequence from URL: {}", url.toString());

biojava-core/src/main/java/org/biojava/nbio/core/sequence/loader/GenbankProxySequenceReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class GenbankProxySequenceReader<C extends Compound> extends StringProxyS
5656

5757
private final static Logger logger = LoggerFactory.getLogger(GenbankProxySequenceReader.class);
5858

59-
private static final String eutilBaseURL = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/"; //
59+
private static final String eutilBaseURL = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"; //
6060
private String genbankDirectoryCache = null;
6161
private GenbankSequenceParser<AbstractSequence<C>, C> genbankParser;
6262
private GenericGenbankHeaderParser<AbstractSequence<C>, C> headerParser;

0 commit comments

Comments
 (0)