mirror of
https://github.com/avwo/whistle.git
synced 2026-10-26 03:53:03 +08:00
refactor: remove sessionId
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ exports.request = function(req, res, callback) {
|
||||
return callback();
|
||||
}
|
||||
var key = getKey(options);
|
||||
var name = req.sessionId + '\n' + key;
|
||||
var name = req.clientIp + '\n' + key;
|
||||
var client = clients[name];
|
||||
if (client) {
|
||||
return requestH2(client, req, res);
|
||||
|
||||
@@ -721,9 +721,6 @@ function toHttp1(req, res) {
|
||||
options.port = config.port;
|
||||
options.headers = headers;
|
||||
if (isH2) {
|
||||
var s = req.socket || '';
|
||||
s._h2SessionId = s._h2SessionId || util.getSessionId();
|
||||
headers[config.SESSION_ID_HEADER] = s._h2SessionId;
|
||||
headers[config.ALPN_PROTOCOL_HEADER] = 'h2';
|
||||
}
|
||||
options.method = req.method;
|
||||
|
||||
Reference in New Issue
Block a user