Implementing checking of HTTP Accept header.fixes #141