From 4c522ff2b852b638903f03d59355f93fed0afe96 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sat, 27 Jul 2024 21:27:48 -0400 Subject: [PATCH] handle test --- pkg/gordio/server/calls.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/gordio/server/calls.go b/pkg/gordio/server/calls.go index 7743904..4abfa93 100644 --- a/pkg/gordio/server/calls.go +++ b/pkg/gordio/server/calls.go @@ -83,6 +83,11 @@ func (s *Server) routeCallUpload(w http.ResponseWriter, r *http.Request) { return } + if r.Form.Get("test") == "1" { + w.Write([]byte("Test succeeded")) + return + } + call := new(callUploadRequest) err = call.fill(r) if err != nil {