Fix to leave alone JSON (or other non-HTML) requests

This pull request is getting no love over at the unmaintained repo; brendanlim/mobile-fu#31

I've redone it so it's compatible with this fork. Please refer to other pull request for details about it.