mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fixup! getFileNameFromDisposition access public
This commit is contained in:
@@ -626,7 +626,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
|
|||||||
*
|
*
|
||||||
* @return 文件名,empty表示无
|
* @return 文件名,empty表示无
|
||||||
*/
|
*/
|
||||||
private String getFileNameFromDisposition() {
|
public String getFileNameFromDisposition() {
|
||||||
return getFileNameFromDisposition("filename");
|
return getFileNameFromDisposition("filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -636,7 +636,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
|
|||||||
*
|
*
|
||||||
* @return 文件名,empty表示无
|
* @return 文件名,empty表示无
|
||||||
*/
|
*/
|
||||||
private String getFileNameFromDisposition(String paramName) {
|
public String getFileNameFromDisposition(String paramName) {
|
||||||
String fileName = null;
|
String fileName = null;
|
||||||
final String disposition = header(Header.CONTENT_DISPOSITION);
|
final String disposition = header(Header.CONTENT_DISPOSITION);
|
||||||
if (StrUtil.isNotBlank(disposition)) {
|
if (StrUtil.isNotBlank(disposition)) {
|
||||||
|
Reference in New Issue
Block a user