0

I want to override host header in PutObjectRequest request so I have implemented the following code:

PutObjectRequest request = builder
            .bucket(bucket).key(objectKey)
                .overrideConfiguration(b -> {
                    b.putHeader("Host", headers.get("Host"));
                    b.putHeader("Authorization", headers.get("Authorization"));
                }).build();

But I intercepted the request and see that host header differs from that value. The same situation with "Authorization" header

P.S.

I want to implement proxy between client application and S3 compatible storage.

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710

0 Answers0