Skip to content

Commit fc0c2ae

Browse files
authored
Merge pull request #172 from NHSDigital/dev/NPA-4610_Patch_Consent_Media_Type3
NPA-4610 Update Patch Consent Media Type Condition
2 parents 46c673b + f3cf198 commit fc0c2ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proxies/live/apiproxy/targets/target.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
<Step>
1818
<Name>RaiseFault.415UnsupportedMediaType</Name>
1919
<Condition>request.verb = "POST" and request.header.Content-Type != "application/fhir+json" and request.header.Content-Type != "application/fhir+json; charset=utf-8"</Condition>
20+
<!-- Catches all POST Incorrect Content-Type -->
2021
</Step>
2122
<Step>
2223
<Name>RaiseFault.415UnsupportedMediaType</Name>
23-
<Condition>request.verb = "PATCH" and request.header.Content-Type != "application/json-patch+json"</Condition>
24+
<Condition>request.verb = "PATCH" and request.pathsuffix = "/FHIR/R4/Consent" and request.header.Content-Type != "application/json-patch+json"</Condition>
25+
<!-- Catches PATCH /Consent Incorrect Content-Type -->
2426
</Step>
2527
<Step>
2628
<Name>SetRequestAWSMimeType</Name>

0 commit comments

Comments
 (0)