File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ source "$root"/lib.bash
5
5
" $ghfs " -l 3003 -R -a :world:" $fs " /vhost1/go :/not/exist/name:" $fs " /vhost1/yes &
6
6
sleep 0.05 # wait server ready
7
7
8
- file1status=$( curl_get_status http://127.0.0.1:3003/file1.txt | head -n 1 | cut -d ' ' -f 2 )
8
+ file1status=$( curl_get_status http://127.0.0.1:3003/file1.txt)
9
9
assert " $file1status " ' 404'
10
10
11
- file1headstatus=$( curl_head_status http://127.0.0.1:3003/file1.txt | head -n 1 | cut -d ' ' -f 2 )
11
+ file1headstatus=$( curl_head_status http://127.0.0.1:3003/file1.txt)
12
12
assert " $file1headstatus " ' 404'
13
13
14
- hellostatus=$( curl_get_status http://127.0.0.1:3003/hello/index.txt | head -n 1 | cut -d ' ' -f 2 )
14
+ hellostatus=$( curl_get_status http://127.0.0.1:3003/hello/index.txt)
15
15
assert " $hellostatus " ' 404'
16
16
17
- helloheadstatus=$( curl_head_status http://127.0.0.1:3003/hello/index.txt | head -n 1 | cut -d ' ' -f 2 )
17
+ helloheadstatus=$( curl_head_status http://127.0.0.1:3003/hello/index.txt)
18
18
assert " $helloheadstatus " ' 404'
19
19
20
20
go=$( curl_get_body http://127.0.0.1:3003/world/index.txt)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export cert=$(realpath cert)
16
16
export src=$( realpath ../src)
17
17
export ghfs=$( realpath bin) /ghfs
18
18
19
- go build -o " $ghfs " " $src /main.go"
19
+ GO111MODULE=auto go build -o " $ghfs " " $src /main.go"
20
20
21
21
pattern=" $1 "
22
22
if [ -z " $pattern " ]; then
You can’t perform that action at this time.
0 commit comments