bug fix

If the content is not detected as html, the response hangs forever. This fixes that.