forked from I2P_Developers/i2p.i2p
dead code cleanup
Some checks failed
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
Some checks failed
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
This commit is contained in:
@ -134,17 +134,13 @@ public class EepPost extends EepGet {
|
||||
* @param separator non-null
|
||||
*/
|
||||
private static void sendFields(OutputStream out, String separator, Map<String, Object> fields) throws IOException {
|
||||
boolean first = true;
|
||||
for (Map.Entry<String, Object> e : fields.entrySet()) {
|
||||
String field = e.getKey();
|
||||
Object val = e.getValue();
|
||||
if (val instanceof File) {
|
||||
sendFile(out, separator, field, (File)val);
|
||||
} else {
|
||||
if (separator == null && !first)
|
||||
out.write('&');
|
||||
sendField(out, separator, field, val.toString());
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
out.write(DataHelper.getUTF8("--" + separator + "--" + CRLF));
|
||||
|
Reference in New Issue
Block a user