Refactored some things in the http package

This commit is contained in:
Ziver Koc 2016-07-06 17:34:59 +02:00
parent e091a9abe6
commit f77a757b6d
5 changed files with 74 additions and 112 deletions

View file

@ -194,7 +194,7 @@ public class HttpServer extends ThreadedTCPNetworkServer{
tmp.contains("text/xml") ||
tmp.contains("text/plain")) {
// save the variables
header.putURLAttribute("", tmpBuff.toString());
header.getUrlAttributeMap().put("", tmpBuff.toString());
} else if (tmp.contains("multipart/form-data")) {
// TODO: File upload
throw new UnsupportedOperationException("HTTP Content-Type 'multipart-form-data' not supported.");