You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2007/10/26 02:40:20 UTC
svn commit: r588453 -
/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
Author: jmsnell
Date: Thu Oct 25 17:40:18 2007
New Revision: 588453
URL: http://svn.apache.org/viewvc?rev=588453&view=rev
Log:
output just the doc.getRoot() and not the doc
Modified:
incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
Modified: incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java?rev=588453&r1=588452&r2=588453&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java (original)
+++ incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java Thu Oct 25 17:40:18 2007
@@ -93,9 +93,9 @@
if (doc.getLanguage() != null)
response.setHeader("Content-Language", doc.getLanguage());
if (doc.getLastModified() != null)
- response.setDateHeader("Last-Modified", doc.getLastModified().getTime());
+ response.setDateHeader("Last-Modified", doc.getLastModified().getTime());
OutputStream out = response.getOutputStream();
- json.writeTo(doc, out);
+ json.writeTo(doc.getRoot(), out);
} catch (Exception e) {
response.sendError(500);
return;