Revision 52056
Added by Miriam Baglioni almost 6 years ago
HTTPWithFileNameCollectorIterable.java | ||
---|---|---|
51 | 51 |
meta = meta.substring(0, meta.length() - 1) + ",'downloadFileUrl':'" + path.substring(0, path.indexOf(".json")) + ".pdf'}"; |
52 | 52 |
else{ |
53 | 53 |
|
54 |
if (meta.startsWith("<!DOCTYPE")) |
|
54 |
if (meta.trim().startsWith("<!DOCTYPE"))
|
|
55 | 55 |
meta = meta.substring(meta.indexOf(">")+1); |
56 | 56 |
int index = meta.lastIndexOf("</"); |
57 | 57 |
meta = meta.substring(0, index) + "<downloadFileUrl>" + path.substring(0, path.indexOf(".xml")) + ".pdf</downloadFileUrl>" + meta.substring(index); |
Also available in: Unified diff
minor