Skip to content

Commit c393ddd

Browse files
committed
test 301 bugfix
1 parent 466c849 commit c393ddd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uid2/operator/store/CloudSyncOptOutStore.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import io.vertx.ext.web.client.HttpRequest;
2424
import io.vertx.ext.web.client.HttpResponse;
2525
import io.vertx.ext.web.client.WebClient;
26+
import io.vertx.ext.web.client.WebClientOptions;
2627
import io.vertx.ext.web.codec.BodyCodec;
2728
import org.slf4j.Logger;
2829
import org.slf4j.LoggerFactory;
@@ -56,7 +57,7 @@ public class CloudSyncOptOutStore implements IOptOutStore {
5657

5758
public CloudSyncOptOutStore(Vertx vertx, ICloudStorage fsLocal, JsonObject jsonConfig, String operatorKey, Clock clock) throws MalformedURLException {
5859
this.fsLocal = fsLocal;
59-
this.webClient = WebClient.create(vertx);
60+
this.webClient = WebClient.create(vertx, new WebClientOptions().setFollowRedirects(true));
6061

6162
String remoteApi = jsonConfig.getString(Const.Config.OptOutApiUriProp);
6263
if (remoteApi != null) {

0 commit comments

Comments
 (0)