Rounding cpu load
This commit is contained in:
parent
aa4e110832
commit
e38355aa56
2 changed files with 8 additions and 6 deletions
|
|
@ -61,13 +61,14 @@ public abstract class AbstractPage implements HttpPage{
|
|||
HttpHeaderParser client_info,
|
||||
Map<String, Object> session,
|
||||
Map<String, String> cookie,
|
||||
Map<String, String> request) {
|
||||
Map<String, String> request) throws IOException {
|
||||
WAContext context = (WAContext)session.get("context");
|
||||
if(context == null){
|
||||
context = new WAContext();
|
||||
}
|
||||
|
||||
if(("application/json").equals(client_info.getHeader("ContentType"))){
|
||||
if(("application/json").equals(client_info.getHeader("ContentType")) ||
|
||||
request.containsKey("json")){
|
||||
DataNode node = jsonResponse(context, client_info, session, cookie, request);
|
||||
if(node != null) {
|
||||
out.setHeader("Content-Type", "application/json");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue