Skip to content

Commit e00c844

Browse files
[formrecognizer] Fix logging test to take into account new header (#26937)
* allow x-ms-region to be logged * add async client
1 parent 0e39682 commit e00c844

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, TokenCre
4949
"x-content-type-options",
5050
"ms-azure-ai-errorcode",
5151
"x-ms-cs-error-code",
52+
"x-ms-region",
5253
}
5354
)
5455
http_logging_policy.allowed_query_params.update(

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_base_client_async.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(
5555
"x-content-type-options",
5656
"ms-azure-ai-errorcode",
5757
"x-ms-cs-error-code",
58+
"x-ms-region",
5859
}
5960
)
6061
http_logging_policy.allowed_query_params.update(

0 commit comments

Comments
 (0)