fix a bug where disabled browsing was shown as browsable. Log the response code if it's not 200

pull/24/head
Zlatin Balevsky 2019-10-19 22:33:47 +01:00
parent 9c15208f3a
commit 13f7b8563c
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class BrowseManager {
InputStream is = endpoint.getInputStream()
String code = DataUtil.readTillRN(is)
if (!code.startsWith("200"))
throw new IOException("Invalid code")
throw new IOException("Invalid code $code")
// parse all headers
Map<String,String> headers = new HashMap<>()

View File

@ -97,7 +97,7 @@ class ResultsParser {
boolean browse = false
if (json.browse != null)
browse = true
browse = json.browse
return new UIResultEvent( sender : p,
name : name,