Skip to content

Commit

Permalink
This ought to be registeres, otherwise some call don't work well.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Sep 23, 2024
1 parent 615d4c9 commit d691cf7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.ws.rs.ServiceUnavailableException;
import jakarta.ws.rs.client.ClientRequestContext;
import jakarta.ws.rs.client.ClientRequestFilter;
import jakarta.ws.rs.client.*;
import jakarta.ws.rs.core.Response;
import lombok.*;

Expand Down Expand Up @@ -41,6 +40,7 @@
import nl.vpro.poms.shared.Headers;
import nl.vpro.rs.VersionRestService;
import nl.vpro.rs.client.VersionResult;
import nl.vpro.rs.converters.CaseInsensitiveEnumParamConverterProvider;
import nl.vpro.rs.media.FrameCreatorRestService;
import nl.vpro.rs.media.MediaBackendRestService;
import nl.vpro.util.*;
Expand Down Expand Up @@ -437,7 +437,7 @@ protected void buildResteasy(ResteasyClientBuilder builder) {
"User name (" + userName + ") and password (" + password + ") should both be non null");
}

builder.httpEngine(getClientHttpEngine())
ClientBuilder register = builder.httpEngine(getClientHttpEngine())
.register(new BasicAuthentication(userName, password))
.register(new AddRequestHeadersFilter())
.register(VTTSubtitlesReader.class)
Expand All @@ -446,6 +446,7 @@ protected void buildResteasy(ResteasyClientBuilder builder) {
.register(VTTWriter.class)
.register(VTTSubtitlesWriter.class)
.register(ContentTypeInterceptor.class)
.register(CaseInsensitiveEnumParamConverterProvider.class)
;
}

Expand Down

0 comments on commit d691cf7

Please sign in to comment.