Check request.format instead of format parameter
Bump version to 0.3.1 for fix for requests using accept header