fix a bug where disabled browsing was shown as browsable. Log the response code if it's not 200
This commit is contained in:
@@ -40,7 +40,7 @@ class BrowseManager {
|
|||||||
InputStream is = endpoint.getInputStream()
|
InputStream is = endpoint.getInputStream()
|
||||||
String code = DataUtil.readTillRN(is)
|
String code = DataUtil.readTillRN(is)
|
||||||
if (!code.startsWith("200"))
|
if (!code.startsWith("200"))
|
||||||
throw new IOException("Invalid code")
|
throw new IOException("Invalid code $code")
|
||||||
|
|
||||||
// parse all headers
|
// parse all headers
|
||||||
Map<String,String> headers = new HashMap<>()
|
Map<String,String> headers = new HashMap<>()
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class ResultsParser {
|
|||||||
|
|
||||||
boolean browse = false
|
boolean browse = false
|
||||||
if (json.browse != null)
|
if (json.browse != null)
|
||||||
browse = true
|
browse = json.browse
|
||||||
|
|
||||||
return new UIResultEvent( sender : p,
|
return new UIResultEvent( sender : p,
|
||||||
name : name,
|
name : name,
|
||||||
|
|||||||
Reference in New Issue
Block a user