edited local web server pattern constant and changed wording of comment in response to PR comments

This commit is contained in:
Victoria 2024-07-23 09:32:19 -07:00
Родитель ae5e362095
Коммит dd7ec30e1d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -32,7 +32,7 @@ namespace CollectSFData.Common
public const string InstanceMetaDataRestUri = "http://169.254.169.254/metadata/instance?api-version=2017-08-01"; //DevSkim: ignore DS137138 as is used on internal az network for instance metadata
public const string JsonExtension = ".json";
public const string KustoUrlPattern = "https://(?<ingest>ingest-){1}(?<clusterName>.+?)\\.(?<location>.+?){0,1}\\.(?<domainName>.+?)/(?<databaseName>.+?){1}(/|$)";
public const string LocalWebServerPattern = @"^http:\/\/localhost:(?<port>\d){1,5}\/(?<databaseName>.+?)$";
public const string LocalWebServerPattern = @"^http://localhost:(?<port>\d){1,5}/(?<databaseName>.+?)$";
public const string LogExtension = ".log";
public const string ManagementAzureCom = "https://management.azure.com";
public const int MaxCsvTransmitBytes = 1024 * 1024 * 100;

Просмотреть файл

@ -243,7 +243,7 @@ namespace CollectSFData.Kusto
private void IngestLocally(FileObject fileObject)
{
string ingestionMapping = SetIngestionMapping(fileObject);
// After the files get formatted, they are in a zip file format. To read the stream's contents, the file must be decompressed
// As part of the file formatting process, the files are compressed into a zip file format. To read the stream's contents, the file must be decompressed
fileObject.Stream.Decompress();
string traces = fileObject.Stream.ReadToEnd();
if (traces.Length != 0)