Skip to content

Commit

Permalink
API-7719: pass through public-soap-proxy responses
Browse files Browse the repository at this point in the history
  • Loading branch information
worthydolt committed Jul 22, 2024
2 parents a6339a1 + 3479b3f commit 81f53e5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class PassThroughController @Inject() (
def sendAndProcessResponse(path: String, nodeSeq: NodeSeq, authHeader: (String, String)): Future[Result] = {
postHttpRequestV2(path, nodeSeq, authHeader: (String, String)).map { httpResponse =>
Result(header = ResponseHeader(httpResponse.status, Map.empty), body = HttpEntity.Strict(ByteString(httpResponse.body), Some(XML)))

}.recoverWith {
case NonFatal(e) =>
logger.warn(s"Error in sendAndProcessResponse - ${e.getMessage} while trying to forward message", e)
Expand Down

0 comments on commit 81f53e5

Please sign in to comment.