devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1742808 - in /devicemap/trunk/examples/1.0/java: servlet/src/main/java/org/apache/devicemap/servlet/Classify.java spring/src/main/webapp/WEB-INF/views/device.jsp
Date Sun, 08 May 2016 12:31:34 GMT
Author: wkeil
Date: Sun May  8 12:31:34 2016
New Revision: 1742808

URL: http://svn.apache.org/viewvc?rev=1742808&view=rev
Log:
DMAP-191: DMAP-Spring on VM broken 

Task-Url: https://issues.apache.org/jira/browse/DMAP-191

Modified:
    devicemap/trunk/examples/1.0/java/servlet/src/main/java/org/apache/devicemap/servlet/Classify.java
    devicemap/trunk/examples/1.0/java/spring/src/main/webapp/WEB-INF/views/device.jsp

Modified: devicemap/trunk/examples/1.0/java/servlet/src/main/java/org/apache/devicemap/servlet/Classify.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/examples/1.0/java/servlet/src/main/java/org/apache/devicemap/servlet/Classify.java?rev=1742808&r1=1742807&r2=1742808&view=diff
==============================================================================
--- devicemap/trunk/examples/1.0/java/servlet/src/main/java/org/apache/devicemap/servlet/Classify.java
(original)
+++ devicemap/trunk/examples/1.0/java/servlet/src/main/java/org/apache/devicemap/servlet/Classify.java
Sun May  8 12:31:34 2016
@@ -54,8 +54,8 @@ public class Classify extends HttpServle
     long diff = (System.nanoTime() - start) / 1000;
 
     final StringBuilder sb = new StringBuilder();
-    sb.append("{\"success\":true,\"user-agent\":\"").append(ua).append("\",\"time_microseconds\":");
-    sb.append(diff).append(",\"result\":").append(device.toString()).append("}");
+    sb.append("\n{\n\"success\":true,\n\"user-agent\":\"").append(ua).append("\",\"time_microseconds\":");
+    sb.append(diff).append(",\"result\":").append(device.toString()).append("\n}");
 
     response.setHeader("Content-Type", "application/json");
 

Modified: devicemap/trunk/examples/1.0/java/spring/src/main/webapp/WEB-INF/views/device.jsp
URL: http://svn.apache.org/viewvc/devicemap/trunk/examples/1.0/java/spring/src/main/webapp/WEB-INF/views/device.jsp?rev=1742808&r1=1742807&r2=1742808&view=diff
==============================================================================
--- devicemap/trunk/examples/1.0/java/spring/src/main/webapp/WEB-INF/views/device.jsp (original)
+++ devicemap/trunk/examples/1.0/java/spring/src/main/webapp/WEB-INF/views/device.jsp Sun
May  8 12:31:34 2016
@@ -3,7 +3,7 @@
 <%@ page contentType="application/json; charset=UTF-8" %>
 {
 "success":true,
-"ua":"${ua}",
+"user-agent":"${ua}",
 "time_microseconds":${time},
 "result":${device}
 }



Mime
View raw message