mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
ignore scheme case
This commit is contained in:
@@ -151,7 +151,7 @@ public class HttpGetter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void ensureHttpScheme(String scheme) throws SchemeNotAllowedException {
|
private void ensureHttpScheme(String scheme) throws SchemeNotAllowedException {
|
||||||
if (!"http".equals(scheme) && !"https".equals(scheme)) {
|
if (!"http".equalsIgnoreCase(scheme) && !"https".equalsIgnoreCase(scheme)) {
|
||||||
throw new SchemeNotAllowedException(scheme);
|
throw new SchemeNotAllowedException(scheme);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user