Skip to content

Commit 3924cd5

Browse files
committed
修复带引号无法识别
1 parent c233cdd commit 3924cd5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dotnetCampus.FileDownloader/FileDownloaderHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ protected override async Task<HttpResponseMessage> GetResponseAsync(HttpRequestM
196196
if (!string.IsNullOrEmpty(fileNameValue))
197197
{
198198
// 额外判断一下 UTF-8 存在的情况
199+
fileNameValue = fileNameValue.Trim('"');
199200
var match = Regex.Match(fileNameValue, @"([\S\s]*)''([\S\s]*)");
200201
if (match.Success)
201202
{

0 commit comments

Comments
 (0)