mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
move response data from memory to local cache file
This commit is contained in:
@@ -24,6 +24,7 @@ function userRequestHandler(req,userRes){
|
||||
in http server : http://www.example.com/a/b/c
|
||||
in https server : /a/b/c
|
||||
*/
|
||||
|
||||
var host = req.headers.host,
|
||||
protocol = (!!req.connection.encrypted && !/^http:/.test(req.url)) ? "https" : "http",
|
||||
fullUrl = protocol === "http" ? req.url : (protocol + '://' + host + req.url),
|
||||
@@ -33,6 +34,9 @@ function userRequestHandler(req,userRes){
|
||||
resourceInfoId = -1,
|
||||
reqData;
|
||||
|
||||
// console.log(req.url);
|
||||
// console.log(path);
|
||||
|
||||
//record
|
||||
resourceInfo = {
|
||||
host : host,
|
||||
|
||||
Reference in New Issue
Block a user