mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-03-13 09:10:01 +00:00
testing requests from the server
This commit is contained in:
parent
59ba94646a
commit
b85daa4e7e
@ -7,6 +7,10 @@ var request = require('request');
|
||||
}
|
||||
, function (error, response, body) {
|
||||
// body is the decompressed response body
|
||||
if (error !== undefined) {
|
||||
console.error(error);
|
||||
}
|
||||
console.log(request);
|
||||
console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity'))
|
||||
console.log('the decoded data is: ' + body)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user