Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST operations are always sent with application/fhir+xml headers #26

Open
SharonHart opened this issue Jan 16, 2024 · 0 comments
Open

Comments

@SharonHart
Copy link

When POSTing or PUTing a resource, the tool logs that the request is sent with json-based Accept and Content-Type, but the actual headers value is application/fhir+xml
Also setting the headers implicitly with fhir server header to application/fhir+json doesn't help.
As some FHIR implementations are restricting the value to application/fhir+json, the tool is not working agains them.

From Fiddler profiling:

Key: Host; Value: localhost:8080
Key: User-Agent; Value: .NET FhirClient for FHIR 4.0.1
Key: Accept; Value: application/fhir+xml; charset=utf-8; fhirVersion=4.0
Key: Accept-Encoding; Value: gzip, deflate
Key: Content-Type; Value: application/fhir+xml; charset=utf-8; fhirVersion=4.0
Key: Content-Length; Value: 9356
@SharonHart SharonHart changed the title REST operations are always sent as application/fhir+xml REST operations are always sent with application/fhir+xml header Jan 16, 2024
@SharonHart SharonHart changed the title REST operations are always sent with application/fhir+xml header REST operations are always sent with application/fhir+xml headers Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant