mirror of https://github.com/zlatinb/muwire
fix a bug where disabled browsing was shown as browsable. Log the response code if it's not 200
parent
9c15208f3a
commit
13f7b8563c
|
@ -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<>()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue