Skip to content

Commit

Permalink
Reversed comparison of Timestamped against body.class for determinati…
Browse files Browse the repository at this point in the history
…on of adding Last-Modified header.
  • Loading branch information
tfredrich committed May 22, 2012
1 parent b7b8a62 commit 3cc8c3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void process(Request request, Response response)

Object body = response.getBody();

if (!response.hasHeader(LAST_MODIFIED) && body.getClass().isAssignableFrom(Timestamped.class))
if (!response.hasHeader(LAST_MODIFIED) && Timestamped.class.isAssignableFrom(body.getClass()))
{
response.addHeader(LAST_MODIFIED, fmt.format(((Timestamped) body).getUpdatedAt()));
}
Expand Down

0 comments on commit 3cc8c3e

Please sign in to comment.