browserify / browserify/http-browserify
callback function is not called as should
- Dominant language
- JavaScript
- Stars
- 245
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing HTTPDigest.prototype.request in the shown request flow, including http.request and _handleResponse, when the code is browserified. Reproduce the 401 digest-auth response in the browser and compare callback behavior before and after the credentials popup. Done means the callback is invoked consistently without requiring an extra credentials-dialog action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100