HomeMusing Studio

update IsJSON to check for Accept header

Description

update IsJSON to check for Accept header

this changes the helper IsJSON to take a request instead of a string,
allowing to check multiple headers. In this case both Content-Type and
Accept.

Details

Provenance
robjlorangerAuthored on Sep 18 2019, 7:39 PM
Parents
rWF66974dcbffb4: Merge pull request #184 from writeas/title-attrs
Branches
Unknown
Tags
Unknown
References
refs/pull/185/head