-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
how to change the contents of html,when the page is received from proxy?
my aim is to add some html code to the page,when the page returns to client
the code is like followings:
proxy.on('proxyRes', function (proxyRes, request, response){
proxyRes.on('end',function(){
if(proxyRes.headers['content-type']=='text/html;charset=utf-8'){
proxyRes.write('hhhhhhhhhhh'); //this sentence may be wrong
}
})
})
gajus, poying and fregante
Metadata
Metadata
Assignees
Labels
No labels