mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
handle empty tokens in rest handler
This commit is contained in:
parent
d14f04fa07
commit
91cb537559
1 changed files with 3 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ public class ZeppelinhubRestApiHandler {
|
|||
}
|
||||
|
||||
public String get(String token, String argument) throws IOException {
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
String url = zepelinhubUrl + argument;
|
||||
return sendToZeppelinHub(HttpMethod.GET, url, StringUtils.EMPTY, token, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue