You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfilenameStarRegexMatch=contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/);// Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
1579
-
if(filenameStarRegexMatch){
1580
-
filenameFromContentDeposition=decodeURIComponent(filenameStarRegexMatch[1]);// the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
constfilenameStarRegexMatch=contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/);// Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
1580
+
if(filenameStarRegexMatch){
1581
+
filenameFromContentDeposition=decodeURIComponent(filenameStarRegexMatch[1]);// the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
0 commit comments