summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/tools/http_server/http_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/tools/http_server/http_server.go')
-rw-r--r--extras/hs-test/tools/http_server/http_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hs-test/tools/http_server/http_server.go b/extras/hs-test/tools/http_server/http_server.go
index 8edbb149967..d2ab3851643 100644
--- a/extras/hs-test/tools/http_server/http_server.go
+++ b/extras/hs-test/tools/http_server/http_server.go
@@ -8,13 +8,13 @@ import (
)
func main() {
- if len(os.Args) < 2 {
+ if len(os.Args) < 3 {
fmt.Println("arg expected")
os.Exit(1)
}
http.HandleFunc("/httpTestFile", func(w http.ResponseWriter, r *http.Request) {
- file, _ := os.Open("httpTestFile")
+ file, _ := os.Open("httpTestFile" + os.Args[2])
defer file.Close()
io.Copy(w, file)
})