weblib: fix unauthorized detection on client
authorNiki Roo <niki@nikiroo.be>
Wed, 13 May 2020 21:45:39 +0000 (23:45 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 13 May 2020 21:45:39 +0000 (23:45 +0200)
src/be/nikiroo/fanfix/library/WebLibrary.java

index 8c71ff590b41b85bba46e715b0ea8328af383592..9769fea4420f14719b7053cbf9baeb04ce7a5119 100644 (file)
@@ -128,7 +128,7 @@ public class WebLibrary extends BasicLibrary {
                        download(WebLibraryUrls.INDEX_URL).close();
                } catch (IOException e) {
                        try {
-                               download(WebLibraryUrls.VERSION_URL).close();
+                               download("/style.css").close();
                                return Status.UNAUTHORIZED;
                        } catch (IOException ioe) {
                                return Status.UNAVAILABLE;