This commit is contained in:
Tilman Walther
2012-01-08 15:22:35 +01:00
parent d72297216f
commit 4ee9a74bea
2 changed files with 6 additions and 4 deletions
+5
View File
@@ -241,7 +241,12 @@ public class HttpServer extends NanoHTTPD {
dump(fullFile, path); dump(fullFile, path);
// TODO Hier evtl. noch den MIME type ändern
Response serverResponse = newNoChacheResponse(HTTP_OK, response.getMime(), fullFile); Response serverResponse = newNoChacheResponse(HTTP_OK, response.getMime(), fullFile);
return serverResponse; return serverResponse;
} catch (IOException e) { } catch (IOException e) {
return getErrorResponse("Error reading view file: " + viewName return getErrorResponse("Error reading view file: " + viewName
+1 -4
View File
@@ -58,11 +58,8 @@ public class Request {
} }
public ControllerResponse xmlResponse(Xml xml) { public ControllerResponse xmlResponse(Xml xml) {
return new ControllerResponse(ControllerResponse.MIME_XML, xml,
ControllerResponse controllerResponse = new ControllerResponse(ControllerResponse.MIME_XML, xml,
templateFile, path.getController()); templateFile, path.getController());
return controllerResponse;
} }
public ControllerResponse xmlResponse(Xml xml, String templateFile) { public ControllerResponse xmlResponse(Xml xml, String templateFile) {