mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Formatting.
This commit is contained in:
parent
52cb935c72
commit
b108dafcf8
1 changed files with 1 additions and 2 deletions
|
@ -179,8 +179,7 @@ public class Main {
|
||||||
// extracts file name from header field
|
// extracts file name from header field
|
||||||
int index = disposition.indexOf("filename=");
|
int index = disposition.indexOf("filename=");
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
fileName = disposition.substring(index + 10,
|
fileName = disposition.substring(index + 10, disposition.length() - 1);
|
||||||
disposition.length() - 1);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// extracts file name from URL
|
// extracts file name from URL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue