Skip to content

Commit

Permalink
#25 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 9, 2016
1 parent 7890b7c commit a7e9794
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkRelay.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private static Response cached(final Response rsp) {
new RsWithoutHeader(rsp, "Age"),
"Expires"
),
"Cached-Control"
"Cache-Control"
),
"Age: 31536000",
"Cache-Control: max-age=31536000",
Expand Down
11 changes: 7 additions & 4 deletions src/test/java/io/jare/tk/TkRelayTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public void catchesInvalidUrls() throws Exception {
public void setsCachingHeaders() throws Exception {
final Take target = new TkWithHeaders(
new TkText("cacheable forever"),
"Age: 600",
"Cache-control: max-age=600",
"Expires: Thu, 08 Dec 2016 22:51:37 GMT"
"age: 600",
"cache-control: max-age=600",
"expires: Thu, 08 Dec 2016 22:51:37 GMT"
);
new FtRemote(target).exec(
home -> MatcherAssert.assertThat(
Expand All @@ -146,7 +146,10 @@ public void setsCachingHeaders() throws Exception {
Matchers.allOf(
new HmRsHeader("Age", "31536000"),
new HmRsHeader("Cache-Control", "max-age=31536000"),
new HmRsHeader("Expires", "Sun, 19 Jul 2020 18:06:32 GMT")
new HmRsHeader("Expires", "Sun, 19 Jul 2020 18:06:32 GMT"),
Matchers.not(
new HmRsHeader("Cache-Control", "max-age=600")
)
)
)
);
Expand Down

0 comments on commit a7e9794

Please sign in to comment.