Skip to content

Commit

Permalink
Merge pull request #52 from NHSDigital/NPA-2461-set-mime-type
Browse files Browse the repository at this point in the history
Set mime type to application/fhir+json
  • Loading branch information
chris-young-12-nhs authored Apr 18, 2024
2 parents 15724e5 + d237e65 commit 146ac83
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions proxies/live/apiproxy/policies/AssignMessage.SetMimeType.xml
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="SetMimeType">
<DisplayName>Set Mime Type</DisplayName>
<Set>
<Headers>
<Header name="Content-Type">application/fhir+json</Header>
</Headers>
</Set>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="response"/>
</AssignMessage>
7 changes: 7 additions & 0 deletions proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
</Step>
</Request>
</PreFlow>
<PostFlow>
<Response>
<Step>
<Name>SetMimeType</Name>
</Step>
</Response>
</PostFlow>
<FaultRules>
<FaultRule name="unauthorized">
<Step>
Expand Down

0 comments on commit 146ac83

Please sign in to comment.