diff options
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java b/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java index bef64bfbb3..508731b286 100644 --- a/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java +++ b/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java @@ -256,7 +256,7 @@ class AtomBindingListenerServlet extends HttpServlet { if (feed != null) { String feedETag = null; if (feed.getId() != null) - feedETag = feed.getId().toString(); + feedETag = "\"" + feed.getId().toString() + "\""; Date feedUpdated = feed.getUpdated(); // Test request for predicates. String predicate = request.getHeader( "If-Match" ); @@ -302,7 +302,7 @@ class AtomBindingListenerServlet extends HttpServlet { // Provide Etag based on Id and time if given. // Ignore if not given. (Browser may cache if trivial ETag is given.) if ( feedETag != null ) { - response.addHeader(ETAG, feedETag ); + response.addHeader(ETAG, feedETag); } if ( feedUpdated != null ) { response.addHeader(LASTMODIFIED, dateFormat.format( feedUpdated )); |