Remove unchanged files
This commit is contained in:
Родитель
e14eb547b9
Коммит
e61703664e
|
@ -1,24 +1,24 @@
|
|||
{
|
||||
"ListenPort": 8084,
|
||||
"ListenPortSSL": 4433,
|
||||
"SSLKeyLocation": "sslkeypath",
|
||||
"SSLCertLocation": "sslcertpath",
|
||||
"CacheLifetime": 60,
|
||||
"InjectJavascript": "window.Math.random = function() {return 0;}",
|
||||
"QueryParamsToIgnore": "ignoredParam",
|
||||
"UrlReplacements": [
|
||||
{
|
||||
"regex": "/[0-9a-fA-F]{8}",
|
||||
"replacement": "/00000000"
|
||||
},
|
||||
{
|
||||
"regex": "/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
|
||||
"replacement": ""
|
||||
}
|
||||
],
|
||||
"AzureStorageAccessKey": "",
|
||||
"AzureStorageAccountName": "",
|
||||
"AzureStorageContainerName": "",
|
||||
"HarFilePath": "D:\\Temp\\harfiles",
|
||||
"LoggingLevel": "info"
|
||||
{
|
||||
"ListenPort":8084,
|
||||
"ListenPortSSL": 4433,
|
||||
"SSLKeyLocation": "sslkeypath",
|
||||
"SSLCertLocation": "sslcertpath",
|
||||
"CacheLifetime":60,
|
||||
"InjectJavascript":"window.Math.random = function() {return 0;}",
|
||||
"QueryParamsToIgnore":"",
|
||||
"UrlReplacements": [
|
||||
{
|
||||
"regex": "/[0-9a-fA-F]{8}",
|
||||
"replacement": "/00000000"
|
||||
},
|
||||
{
|
||||
"regex": "/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
|
||||
"replacement": ""
|
||||
}
|
||||
],
|
||||
"AzureStorageAccountName":"",
|
||||
"AzureStorageAccessKey":"",
|
||||
"AzureStorageContainerName":"",
|
||||
"HarFilePath":"D:\\Temp\\harfiles\\",
|
||||
"LoggingLevel":"info"
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -46,4 +46,4 @@ export default class AzureStorageHarLookup {
|
|||
}
|
||||
}).bind(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,8 +46,6 @@ export function start(listenPort: number, listenPortSSL: number, sslKeyLocation:
|
|||
responseObj.setHeader('Pragma', 'no-cache');
|
||||
responseObj.statusCode = 200;
|
||||
responseObj.end(responseBytes);
|
||||
|
||||
Logger.Instance().Log('info', 'response success');
|
||||
}
|
||||
|
||||
function setConfigFromArgs(listenPort: number, listenPortSSL: number, sslKeyLocation: string, sslCertLocation: string, injectJavascript: string, cacheLifetime: number, queryParamsToIgnore: string, azureStorageAccountName: string,
|
||||
|
@ -111,10 +109,6 @@ export function start(listenPort: number, listenPortSSL: number, sslKeyLocation:
|
|||
response.end();
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
Logger.Instance().Log('info', 'request received');
|
||||
|
||||
var harFileName: string = getHarFileNameFromHeaders(request);
|
||||
if (!harFileName) {
|
||||
var originIPAddress: string = request.ip;
|
||||
|
@ -170,7 +164,6 @@ export function start(listenPort: number, listenPortSSL: number, sslKeyLocation:
|
|||
function sendErrorResponse(response) {
|
||||
response.statusCode = 404;
|
||||
response.end();
|
||||
Logger.Instance().Log('info', 'response error');
|
||||
}
|
||||
|
||||
function getHarFileNameFromUrlParams(url: string): string {
|
||||
|
|
Загрузка…
Ссылка в новой задаче