|
@@ -105,6 +105,10 @@ public class WebServer {
|
|
|
try {
|
|
|
Transfer t = new Transfer(nextID++);
|
|
|
t.body=body;
|
|
|
+ if(t.body!=null) {
|
|
|
+ t.bytesRead=t.body.length();
|
|
|
+ t.contentLength=t.body.length();
|
|
|
+ }
|
|
|
t.from = req.queryParams("from");
|
|
|
t.to = req.queryParams("to");
|
|
|
t.toMethod = req.queryParamOrDefault("toMethod", "POST");
|