div fixes

Signed-off-by: Laurent ARNAL <laurent@clae.net>
This commit is contained in:
Laurent ARNAL 2024-01-30 09:14:04 +01:00
parent 3e2b9bba1c
commit e7996bca12
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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) {