Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/requestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ function getConnectReqHandler(userRule, recorder, httpsServerMgr) {
resolve();
}
});
cltSocket.on('error', reject);
cltSocket.on('end', () => {
requestStream.push(null);
});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "anyproxy",
"name": "@tuofeng/anyproxy",
"version": "4.0.12",
"description": "A fully configurable HTTP/HTTPS proxy in Node.js",
"main": "proxy.js",
Expand Down Expand Up @@ -40,6 +40,7 @@
"ws": "^5.1.0"
},
"devDependencies": {
"@tuofeng/node-simhash": "^0.1.0",
"antd": "^2.5.0",
"autoprefixer": "^6.4.1",
"babel-core": "^6.14.0",
Expand Down Expand Up @@ -69,7 +70,6 @@
"koa-send": "^3.2.0",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"node-simhash": "^0.1.0",
"nodeunit": "^0.9.1",
"phantom": "^4.0.0",
"postcss-loader": "^0.13.0",
Expand All @@ -95,7 +95,7 @@
"lint": "eslint .",
"testserver": "node test/server/startServer.js",
"testOutWeb": "jasmine test/spec_outweb/test_realweb_spec.js",
"buildweb": "NODE_ENV=production webpack --config web/webpack.config.js --colors",
"buildweb": "NODE_ENV=production npx webpack --config web/webpack.config.js --colors",
"webserver": "NODE_ENV=test webpack --config web/webpack.config.js --colors --watch",
"doc:serve": "node build_scripts/prebuild-doc.js && gitbook serve ./docs-src ./docs --log debug",
"doc:build": "./build_scripts/build-doc-site.sh"
Expand Down
2 changes: 1 addition & 1 deletion test/util/CommonUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function stringSimilarity(a, b, precision = 2) {
* simhash similarity
*/
function simHasH(a, b) {
const simhash = require('node-simhash');
const simhash = require('@tuofeng/node-simhash');
return (simhash.compare(a, b) * 100);
}

Expand Down