Skip to content

Commit 4362974

Browse files
johngrimespiotrszul
authored andcommitted
test: Add Accept header to bulk export polling request
The polling request in ExportOperationUtil was missing the Accept: application/fhir+json header, causing the ParametersToJsonInterceptor to return plain JSON instead of the expected FHIR content type.
1 parent 9516332 commit 4362974

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/test/java/au/csiro/pathling/util/ExportOperationUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ public static boolean doPolling(
316316
webTestClient
317317
.get()
318318
.uri(pollUrl)
319+
.header("Accept", "application/fhir+json")
319320
.exchange()
320321
.expectStatus()
321322
.is2xxSuccessful()

0 commit comments

Comments
 (0)