Fix error when Accept header doesn't exist in request
Merge pull request #580 from xdissent/maybe-accept

0.9: Fix error when Accept header doesn't exist in request