mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-29 00:22:44 +01:00
div fixes
Signed-off-by: Laurent ARNAL <laurent@clae.net>
This commit is contained in:
parent
3e2b9bba1c
commit
e7996bca12
@ -118,8 +118,9 @@ public class LinkyAuthServlet extends HttpServlet {
|
||||
final String reqState = params.getString("state");
|
||||
final String reqError = params.getString("error");
|
||||
|
||||
replaceMap.put(KEY_PAGE_REFRESH,
|
||||
params.isEmpty() ? "" : String.format(HTML_META_REFRESH_CONTENT, servletBaseURL));
|
||||
replaceMap.put(KEY_PAGE_REFRESH, "");
|
||||
|
||||
// params.isEmpty() ? "" : String.format(HTML_META_REFRESH_CONTENT, servletBaseURL)
|
||||
|
||||
if (!StringUtil.isBlank(reqError)) {
|
||||
logger.debug("Spotify redirected with an error: {}", reqError);
|
||||
|
@ -114,6 +114,7 @@ public class EnedisHttpApi {
|
||||
try {
|
||||
Request request = httpClient.newRequest(url);
|
||||
request = request.method(HttpMethod.GET);
|
||||
request = request.header("Authorization", config.token);
|
||||
|
||||
ContentResponse result = request.send();
|
||||
if (result.getStatus() == 307) {
|
||||
|
Loading…
Reference in New Issue
Block a user