Merge remote-tracking branch 'Simon/develop' into develop

This commit is contained in:
Hongwei 2022-09-30 10:39:10 +02:00
commit c09e886c33
2 changed files with 5 additions and 2 deletions

View File

@ -6,8 +6,8 @@ COPY src src
# Copy default props file
COPY src/main/resources/props/sample.props.template src/main/resources/props/default.props
COPY src/main/resources/container.logback.xml.example src/main/resources/default.logback.xml
RUN mvn -e -B dependency:resolve
RUN mvn -e -B package
RUN --mount=type=cache,target=/root/.m2 mvn -e -B dependency:resolve
RUN --mount=type=cache,target=/root/.m2 mvn -e -B package
FROM jetty

View File

@ -707,6 +707,9 @@ object OBPRequest extends MdcLoggable {
addAppAccessIfNecessary.foreach(header => request.setRequestProperty(header.key, header.value))
// Please note that this MUST be called before we set the body of our request
// Otherwise it can fail due to IllegalStateException("Already connected")
// In the end we cannot see info at Request Header's Box at API Explorer
val requestHeaders = tryo {
addAppAccessIfNecessary.map(header => (header.key, Set(header.value))) :::
request.getRequestProperties().asScala.mapValues(_.asScala.toSet).toList