Workaround for a bug in browserify's http implementation