Skip to content

Commit 676ff56

Browse files
author
Liudmila Molkova
committed
final nits
1 parent 63b5158 commit 676ff56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/clientcore/core/src/main/java/io/clientcore/core/http/pipeline/HttpLoggingPolicy.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import java.io.IOException;
2020
import java.net.URI;
21+
import java.util.Collections;
22+
import java.util.List;
2123
import java.util.Locale;
2224
import java.util.Map;
2325
import java.util.Set;
@@ -32,7 +34,7 @@
3234
*/
3335
public class HttpLoggingPolicy implements HttpPipelinePolicy {
3436
private static final HttpLogOptions DEFAULT_HTTP_LOG_OPTIONS = new HttpLogOptions();
35-
private static final Set<HttpHeaderName> ALWAYS_ALLOWED_HEADERS = Set.of(TRACEPARENT);
37+
private static final List<HttpHeaderName> ALWAYS_ALLOWED_HEADERS = Collections.singletonList(TRACEPARENT);
3638
private static final int MAX_BODY_LOG_SIZE = 1024 * 16;
3739
private static final String REDACTED_PLACEHOLDER = "REDACTED";
3840
private static final ClientLogger LOGGER = new ClientLogger(HttpLoggingPolicy.class);

0 commit comments

Comments
 (0)