From 6841681119ad509ca502436abd13c4cda328fe9e Mon Sep 17 00:00:00 2001 From: avernet Date: Fri, 29 Apr 2022 12:32:20 -0700 Subject: [PATCH] Fix #5310: `Authorization` not sent for attachments --- .../main/scala/org/orbeon/oxf/fr/FormRunnerPersistence.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form-runner/shared/src/main/scala/org/orbeon/oxf/fr/FormRunnerPersistence.scala b/form-runner/shared/src/main/scala/org/orbeon/oxf/fr/FormRunnerPersistence.scala index 9ea6084873..fad434d0c5 100644 --- a/form-runner/shared/src/main/scala/org/orbeon/oxf/fr/FormRunnerPersistence.scala +++ b/form-runner/shared/src/main/scala/org/orbeon/oxf/fr/FormRunnerPersistence.scala @@ -679,7 +679,7 @@ trait FormRunnerPersistence { customHeaders = customPutHeaders.toMap, headersToForward = Connection.headersToForwardFromProperty, cookiesToForward = Connection.cookiesToForwardFromProperty, - getHeader = Connection.getHeaderFromRequest(externalContext.getRequest) + getHeader = inScopeContainingDocument.headersGetter ) Connection.connectNow(