From a5308e71f903364489612929c2ada94f0631bdcb Mon Sep 17 00:00:00 2001 From: Neil Frow <675806+worthydolt@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:05:58 +0100 Subject: [PATCH] API-7598: stop removing headers when passing requests through --- .../controllers/PassThroughController.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/uk/gov/hmrc/apiplatforminboundsoap/controllers/PassThroughController.scala b/app/uk/gov/hmrc/apiplatforminboundsoap/controllers/PassThroughController.scala index 6fe49e4..54aa0e0 100755 --- a/app/uk/gov/hmrc/apiplatforminboundsoap/controllers/PassThroughController.scala +++ b/app/uk/gov/hmrc/apiplatforminboundsoap/controllers/PassThroughController.scala @@ -40,8 +40,6 @@ class PassThroughController @Inject() ( ) extends BackendController(cc) with ApplicationLogger { def message(path: String): Action[AnyContent] = Action.async { implicit request => - implicit val hc: HeaderCarrier = HeaderCarrier() - def sendAndProcessResponse(path: String, nodeSeq: NodeSeq): Future[Status] = { postHttpRequestV2(path, nodeSeq).map { case Left(UpstreamErrorResponse(_, statusCode, _, _)) =>