Homewrite.as

update IsJSON to check for Accept header

Authored by robjloranger on Sep 18 2019, 7:39 PM.

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

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