intervention-engine / fhir

Generic FHIR server implementation in GoLang.
Apache License 2.0
112 stars 51 forks source link

Fixes confusion with JSON mime type #98

Closed eedrummer closed 8 years ago

eedrummer commented 8 years ago

STU3 changes the mime type for FHIR. The new code simply checks to see if "json" is contained in the ContentType header.

Provided testing for the AbortNonJSONRequests function Replaced magic number for the status with the constant from the http package.