We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cebf47f commit ed1519eCopy full SHA for ed1519e
src/param/main.go
@@ -80,8 +80,7 @@ func normalize(p *Param) {
80
_, hasRootBind := p.Binds["/"]
81
if hasRootAlias || hasRootBind {
82
p.EmptyRoot = false
83
- }
84
- if p.EmptyRoot {
+ } else if p.EmptyRoot {
85
p.Root = os.DevNull
86
p.Aliases["/"] = os.DevNull
87
} else {
test/case/005.alias.empty.root.alias.root.bash
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+source "$root"/lib.bash
4
5
+"$ghfs" -l 3003 -R -a :/:"$fs"/vhost1 &
6
+sleep 0.05 # wait server ready
7
8
+file1status=$(curl_get_status http://127.0.0.1:3003/file1.txt)
9
+assert "$file1status" '200'
10
11
+file1headstatus=$(curl_head_status http://127.0.0.1:3003/file1.txt)
12
+assert "$file1headstatus" '200'
13
14
+jobs -p | xargs kill
0 commit comments