Skip to content

Commit

Permalink
Fixed the ETagHeaderPostprocessor to include quotes around the ETag h…
Browse files Browse the repository at this point in the history
…eader value.
  • Loading branch information
tfredrich committed May 17, 2012
1 parent 7a1126b commit d52e56d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.number
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Thu May 17 10:26:54 MDT 2012
build.number=69
#Thu May 17 16:03:03 MDT 2012
build.number=71
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void process(Request request, Response response)
if (!response.hasHeader(ETAG))
{
String format = request.getFormat() == null ? request.getResolvedRoute().getDefaultFormat() : request.getFormat();
response.addHeader(ETAG, String.valueOf(body.hashCode() ^ format.hashCode()));
response.addHeader(ETAG, String.format("\"%d%d\"", body.hashCode(), format.hashCode()));
}
}
}

0 comments on commit d52e56d

Please sign in to comment.