Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use Accept header
  • Loading branch information
leleuj committed Apr 7, 2023
1 parent 3a21347 commit 47bcd9f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -179,7 +179,7 @@ protected void internalInit(final boolean forceReinit) {
new DefaultResourceRetriever(getConnectTimeout(),getReadTimeout(), 0, false,
(SSLSocketFactory) Class.forName(SSLFactory).getDeclaredConstructor().newInstance());
final Map<String, List<String>> headers = new HashMap<>();
headers.put(HttpConstants.CONTENT_TYPE_HEADER, Collections.singletonList(HttpConstants.APPLICATION_JSON));
headers.put(HttpConstants.ACCEPT_HEADER, Collections.singletonList(HttpConstants.APPLICATION_JSON));
resourceRetriever.setHeaders(headers);
setResourceRetriever(resourceRetriever);
} catch (ClassNotFoundException | InvocationTargetException | InstantiationException
Expand Down

0 comments on commit 47bcd9f

Please sign in to comment.