Skip to content

Commit

Permalink
Merge pull request #868 from adamlamar/windows-git-clone
Browse files Browse the repository at this point in the history
Fix git clone on Windows
  • Loading branch information
kelson42 authored Jan 19, 2023
2 parents 7a98878 + 59012c5 commit b9937e6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
Binary file modified test/data/corner_cases.zim
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/corner_cases/c#
10 changes: 10 additions & 0 deletions test/data/corner_cases/c#.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>C#</title>
</head>
<body>
<p>C# (pronounced see sharp) is a general-purpose, high-level multi-paradigm programming language. C# encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines</p>
</body>
</html>
1 change: 1 addition & 0 deletions test/data/corner_cases/c_sharp.html
1 change: 0 additions & 1 deletion test/data/corner_cases/wtf.html

This file was deleted.

1 change: 0 additions & 1 deletion test/data/corner_cases/wtf?

This file was deleted.

11 changes: 0 additions & 11 deletions test/data/corner_cases/wtf?.html

This file was deleted.

4 changes: 2 additions & 2 deletions test/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,10 +1198,10 @@ TEST_F(ServerTest, NonEndpointUrlsAreRedirectedToContentUrls)

TEST_F(ServerTest, RedirectionsToURLsWithSpecialSymbols)
{
auto g = zfs1_->GET("/ROOT/content/corner_cases/wtf.html");
auto g = zfs1_->GET("/ROOT/content/corner_cases/c_sharp.html");
ASSERT_EQ(302, g->status);
ASSERT_TRUE(g->has_header("Location"));
ASSERT_EQ(g->get_header_value("Location"), "/ROOT/content/corner_cases/wtf%3F.html");
ASSERT_EQ(g->get_header_value("Location"), "/ROOT/content/corner_cases/c%23.html");
ASSERT_EQ(getCacheControlHeader(*g), "max-age=0, must-revalidate");
ASSERT_FALSE(g->has_header("ETag"));
}
Expand Down

0 comments on commit b9937e6

Please sign in to comment.