1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Formatting.

This commit is contained in:
Cedric Beust 2015-10-14 20:53:03 -07:00
parent 52cb935c72
commit b108dafcf8

View file

@ -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