1# go get <domain>/<owner>/<repo>[/pkg] asks for the path with ?go-get=1 and2# reads the go-import meta tag: the module's root and its https clone. The3# reply is that tag alone, which may load nothing and isn't sniffed.4. "$(dirname "$0")/../lib.sh"5user dami6repo dami/greet7export FORGE_BASE_URL=https://git.test8caddy_server9for p in /dami/greet /dami/greet.git /dami/greet/cmd/hello /dami/my_mod-2.x; do10 http -s -i "$C$p?go-get=1" >"$T/res"11 has "$T/res" '^HTTP/1.1 200 '12 has "$T/res" '^Content-Type: text/html; charset=utf-8'13 has "$T/res" "^Content-Security-Policy: default-src 'none'"14 has "$T/res" '^X-Content-Type-Options: nosniff'15done16http -s "$C/dami/greet/cmd/hello?go-get=1" >"$T/body"17has "$T/body" '<meta name="go-import" content="git\.test/dami/greet git https://git\.test/dami/greet\.git">'18http -s "$C/dami/my_mod-2.x?go-get=1" >"$T/body"19has "$T/body" 'content="git\.test/dami/my_mod-2\.x git https://git\.test/dami/my_mod-2\.x\.git"'