Check request.format instead of format parameter
Merge pull request #5 from malclocke/check_request_format

Check request.format instead of format parameter