http://qs321.pair.com?node_id=562741


in reply to Combining a web application and a REST application under a single URI?

Don't add your own header field, use the Accept header. That's what it's for.