模版编制相关实现
This commit is contained in:
@@ -79,7 +79,7 @@ public class UrlFileDownloader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 从URL和响应头中提取文件名
|
* 从URL和响应头中提取文件名。
|
||||||
*/
|
*/
|
||||||
private static String getFileNameFromUrl(String fileUrl, URLConnection connection) {
|
private static String getFileNameFromUrl(String fileUrl, URLConnection connection) {
|
||||||
// 优先从响应头的Content-Disposition获取(如:attachment;filename="test.pdf")
|
// 优先从响应头的Content-Disposition获取(如:attachment;filename="test.pdf")
|
||||||
|
|||||||
Reference in New Issue
Block a user