FHIR Chat · fhir.js: pull request 91: Overriding Accept and Content-T... · javascript

Stream: javascript

Topic: fhir.js: pull request 91: Overriding Accept and Content-T...


view this post on Zulip FHIR.js Bot (Feb 21 2017 at 07:33):

bunyaminsg opened pull request 91

Defaults in the fhir class was overriding the Accept and Content-Type headers with application/json without considering the cfg provided by users:

var Defaults = Middleware(config(cfg, adapter))
                .and($Errors)
                .and(auth.$Basic)
                .and(auth.$Bearer)
                .and(auth.$Credentials)
                .and(transport.$JsonData)
                .and($$Header('Accept', 'application/json'))
                .and($$Header('Content-Type', 'application/json'));

view this post on Zulip FHIR.js Bot (Feb 21 2017 at 21:49):

niquola closed pull request 91


Last updated: Apr 12 2022 at 19:14 UTC