Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-08-08 17:35:00 +0300
committerNick Thomas <nick@gitlab.com>2017-08-08 18:50:54 +0300
commit7d4c5cb8faa21efd5e3c89e9f4e850a372c2a4fa (patch)
treefc933614b48ca24ca4a4036cc1d236368df64562 /domain_test.go
parent0173d4e6b6b17443155d121a9098d0e742b9c4e3 (diff)
Don't serve statically-compiled `.gz` files that are symlinks
Diffstat (limited to 'domain_test.go')
-rw-r--r--domain_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/domain_test.go b/domain_test.go
index 3ccac7ca..e1d5154f 100644
--- a/domain_test.go
+++ b/domain_test.go
@@ -122,6 +122,8 @@ func TestGroupServeHTTPGzip(t *testing.T) {
{"GET", "http://group.test.io/", nil, ";; gzip", "main-dir", false},
{"GET", "http://group.test.io/", nil, "middle-out", "main-dir", false},
{"GET", "http://group.test.io/", nil, "gzip; quality=1", "main-dir", false},
+ // Symlinked .gz files are not supported
+ {"GET", "http://group.test.io/gz-symlink", nil, "*", "data", false},
}
for _, tt := range testSet {