http redirect (301, 302, 3xx codes) to https when updating hosts file
mator opened this issue · comments
Hello!
Using my own web server to host additional hosts file. Recently implemented let's encrypt certificates to a web server and put http to https redirect (using 301 http code), this broke updating hosts file from my webserver for dns66.
And indeed app/src/main/java/org/jak_linux/dns66/db/RuleDatabaseItemUpdateRunnable.java
line 176 does not support redirect codes except of 200 (http ok)
Dan Pollok hosts file reports error 302: found