Fix decoding of empty responses

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

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.
david
  1. Ship It!
  2. 
      
SM
Review request changed
Status:
Completed
Change Summary:
Pushed to api (6ee284adcc).