Fix decoding of empty responses

Review Request #3680 — Created Dec. 18, 2012 and submitted — Latest diff uploaded

Information

RBTools
api

Reviewers

Fix decoding of empty responses.

When an empty response was given by the web server, we were
decoding to '{}', which is problematic when you are expecting
an empty response for things like empty text/plain files. This
fixes the problematic assumption we were making.
Fixes a bug Review Bot was experiencing when one of the files to review was empty.

Fetched several resources.