Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24)

Issue 2123045: HttpResponse.getCacheTtl returns time in milliseconds while ttl in cache headers is in seconds (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by Kuntal Loya
Modified:
15 years, 3 months ago
Reviewers:
Paul Lindner, dev, dev-remailer, zhoresh
CC:
cool-shindig-committers_googlegroups.com, gagan.goku, anupama.dutta
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

HttpResponse.getCacheTtl returns time in milliseconds while ttl in cache headers is in seconds, therefore doing the appropriate conversion.

Patch Set 1 #

Patch Set 2 : Added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ServletUtil.java View 1 chunk +1 line, -1 line 0 comments Download
M java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/ServletUtilTest.java View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6
gagan.goku
LGTM. Please add an appropriate test case as well.
15 years, 4 months ago (2010-09-13 09:50:02 UTC) #1
anupama.dutta
Is there any test that could be updated to verify this caching header value?
15 years, 4 months ago (2010-09-15 04:57:07 UTC) #2
anupama.dutta
Oops. Just saw Gagan's comment :) Thanks, Anupama. On Wed, Sep 15, 2010 at 10:27 ...
15 years, 4 months ago (2010-09-15 04:57:54 UTC) #3
Kuntal Loya
Added the test.
15 years, 4 months ago (2010-09-17 18:39:44 UTC) #4
zhoresh
good catch, lgtm,
15 years, 3 months ago (2010-09-28 20:39:20 UTC) #5
Paul Lindner
15 years, 3 months ago (2010-09-28 21:32:11 UTC) #6
lgtm too --- will commit.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b