Skip to content

Commit 9186109

Browse files
committed
Set "Accept" header
1 parent 1a96a4d commit 9186109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typedrest/src/main/kotlin/net/typedrest/endpoints/EntryEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ open class EntryEndpoint : AbstractEndpoint {
6666
linkExtractor: LinkExtractor = AggregateLinkExtractor(HeaderLinkExtractor(), HalLinkExtractor())
6767
) : super(
6868
uri,
69-
OkHttpClient().withBasicAuth(credentials ?: uri.extractCredentials()),
69+
OkHttpClient().withAccept(serializer.supportedMediaTypes).withBasicAuth(credentials ?: uri.extractCredentials()),
7070
listOf(serializer),
7171
errorHandler,
7272
linkExtractor

0 commit comments

Comments
 (0)