mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
325 B
JavaScript
17 lines
325 B
JavaScript
|
var needle = require('./..');
|
||
|
|
||
|
var opts = {
|
||
|
username: 'user3',
|
||
|
password: 'user3',
|
||
|
auth: 'digest'
|
||
|
}
|
||
|
|
||
|
needle.get('http://test.webdav.org/auth-digest/', opts, function(err, resp, body) {
|
||
|
console.log(resp.headers);
|
||
|
|
||
|
if (resp.statusCode == 401)
|
||
|
console.log('\nIt failed.')
|
||
|
else
|
||
|
console.log('\nIt worked!')
|
||
|
});
|