You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/06/06 19:08:15 UTC

[2/2] git commit: TAP5-1950: ResourceStreamer sends SC_NOT_MODIFIED as an error, but it should be just status

TAP5-1950: ResourceStreamer sends SC_NOT_MODIFIED as an error, but it should be just status


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/15477fd4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/15477fd4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/15477fd4

Branch: refs/heads/5.3
Commit: 15477fd40a636087dcb5ef08ec1a73a2813b256b
Parents: 63fe85d
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Wed Jun 6 10:05:38 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed Jun 6 10:05:38 2012 -0700

----------------------------------------------------------------------
 .../internal/services/ResourceStreamerImpl.java    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/15477fd4/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceStreamerImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceStreamerImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceStreamerImpl.java
index cb79847..669f907 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceStreamerImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceStreamerImpl.java
@@ -1,4 +1,4 @@
-// Copyright 2006, 2007, 2008, 2009, 2010, 2011 The Apache Software Foundation
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -117,7 +117,7 @@ public class ResourceStreamerImpl implements ResourceStreamer
         {
             if (ifModifiedSince >= lastModified)
             {
-                response.sendError(HttpServletResponse.SC_NOT_MODIFIED, "");
+                response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
                 return;
             }
         }