Skip to content

Commit 7792b75

Browse files
authored
Merge branch 'master' into bug/NPA-4706/mark-post-consent-keys-as-required
2 parents 673840b + fc0c2ae commit 7792b75

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)