You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
日志优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const http = require('http')
|
||||
|
||||
var options = {
|
||||
const options = {
|
||||
headers: {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
|
||||
},
|
||||
@@ -11,7 +11,7 @@ var options = {
|
||||
}
|
||||
}
|
||||
|
||||
var request = http.get('http://test.target/', options, function (response) {
|
||||
const request = http.get('http://test.target/', options, function (response) {
|
||||
response.on('data', function (data) {
|
||||
process.stdout.write(data)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user