We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 755c28b commit 9a8bc27Copy full SHA for 9a8bc27
1 file changed
org.bridgedb/src/main/java/org/bridgedb/DataSource.java
@@ -969,10 +969,10 @@ public static DataSource getByMiriamBase(String base)
969
* @return the DataSource for a given base, or null if the base is invalid or unknown.
970
*/
971
public static DataSource getByIdentiferOrgBase(String base) {
972
- if (base == null || !base.startsWith (IDENTIFIERS_ORG_PREFIX))
973
- {
974
- return null;
975
- }
+ if (base == null) return null;
+ // support the HTTPS variant too
+ base = base.replace("https://identifiers.org", "http://identifiers.org");
+ if (!base.startsWith (IDENTIFIERS_ORG_PREFIX)) return null;
976
977
String key = base.substring(IDENTIFIERS_ORG_PREFIX.length());
978
if (key.endsWith("/")){
0 commit comments