Skip to content

Commit d6fee00

Browse files
add new headers/params to logging policy allowlist (Azure#16305)
1 parent c957c4f commit d6fee00

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ def __init__(self, endpoint, credential, **kwargs):
3434
http_logging_policy.allowed_header_names.update(
3535
{
3636
"Operation-Location",
37+
"Location",
3738
"x-envoy-upstream-service-time",
3839
"apim-request-id",
3940
"Strict-Transport-Security",
40-
"x-content-type-options"
41+
"x-content-type-options",
42+
"ms-azure-ai-errorcode",
43+
"x-ms-cs-error-code"
4144
}
4245
)
4346
http_logging_policy.allowed_query_params.update(
@@ -46,7 +49,8 @@ def __init__(self, endpoint, credential, **kwargs):
4649
"locale",
4750
"language",
4851
"includeKeys",
49-
"op"
52+
"op",
53+
"pages"
5054
}
5155
)
5256

0 commit comments

Comments
 (0)