sync-request
sync-request copied to clipboard
HTTP Basic Access Authentication Support
It appears that sync-request does not support basic access authentication. Are there any plans to include this in the future?
Haven't thought about this yet, it's actually just a simple case of setting the correct header though. i.e.
var optioins = {
headers: {
authorization: 'Basic ' + new Buffer(username + ':' + password, 'ascii').toString('base64')
}
};
If we were going to add it, we would do so by adding it to https://github.com/then/then-request.