Skip to content

Commit

Permalink
Merge pull request #77 from NHSDigital/NPA-2676_Receive_Questionnaire…
Browse files Browse the repository at this point in the history
…_Modify_Headers

NPA-2676 Update Request MimeType to handle `application/fhir+json`
  • Loading branch information
chris-young-12-nhs authored May 16, 2024
2 parents 53c37a3 + a5b00af commit 37c6abc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="SetRequestAWSMimeType">
<DisplayName>Set Request AWS Mime Type</DisplayName>
<Set>
<Headers>
<Header name="Content-Type">application/json</Header>
</Headers>
</Set>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="response"/>
</AssignMessage>
4 changes: 4 additions & 0 deletions proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<Step>
<Name>AddUserNHSNumber</Name>
</Step>
<Step>
<Name>SetRequestAWSMimeType</Name>
<Condition>request.header.Content-Type = "application/fhir+json"</Condition>
</Step>
</Request>
</PreFlow>
<PostFlow>
Expand Down

0 comments on commit 37c6abc

Please sign in to comment.