browserify / http-browserify

node's http module, but for the browser
MIT License
244 stars 110 forks source link

callback function is not called as should #48

Open ekelvin opened 10 years ago

ekelvin commented 10 years ago

Server is a digest auth node.

HTTPDigest.prototype.request = function (data, options, callback) {
    var self = this;
    http.request(options, function (res) {
      self._handleResponse(data, options, res, callback);
    }).end();
  };

if I do this in node I receive a 401 with nonce in order than to make the second request (the real one) when browserified the a popup for the credentials is poped and the the function is not called but only after you click ok or cancel button.