fix: forward bearer auth when polling azure ocr

This commit is contained in:
Ishaan Jaff 2026-09-02 20:14:55 -07:00
parent 56dfe8926e
commit 774e5a7e5e
No known key found for this signature in database

View file

@ -365,7 +365,9 @@ pub(super) async fn poll_document_intelligence(
let mut request_builder = http_client().get(operation_url);
for (key, value) in headers {
if key.eq_ignore_ascii_case("ocp-apim-subscription-key") {
if key.eq_ignore_ascii_case("ocp-apim-subscription-key")
|| key.eq_ignore_ascii_case("authorization")
{
request_builder = request_builder.header(key, value);
}
}