Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Set custom Content-Type #132

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

awatson1978
Copy link

@awatson1978 awatson1978 commented Jan 7, 2017

Pull request to allow setting custom content-types.

JsonRoutes.setResponseHeaders({
  "Content-Type": "application/fhir+json"
});

JsonRoutes.add("post", "/fhir/Patient", function (req, res, next) {

  res.setHeader("Access-Control-Allow-Origin", "*");
  res.setHeader("Content-Type", "application/fhir+json");

  // etc etc etc
});

@awatson1978 awatson1978 changed the title set custom content type Set custom Content-Type Jan 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant