Commit 07d7e374 authored by Juergen Enge's avatar Juergen Enge
Browse files

testurl renamed to testdata

parent 4188fd5d
Pipeline #15433 passed with stages
in 4 minutes and 10 seconds
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
"strings" "strings"
) )
func (ms *memoServer) TestUrl(w http.ResponseWriter, req *http.Request) { func (ms *memoServer) TestData(w http.ResponseWriter, req *http.Request) {
query := req.URL.Query() query := req.URL.Query()
var mediatype string var mediatype string
types, ok := query["type"] types, ok := query["type"]
...@@ -128,8 +128,8 @@ func (ms *memoServer) commandHandler(w http.ResponseWriter, req *http.Request) { ...@@ -128,8 +128,8 @@ func (ms *memoServer) commandHandler(w http.ResponseWriter, req *http.Request) {
} }
switch cmd { switch cmd {
case "testurl": case "testdata":
ms.TestUrl(w, req) ms.TestData(w, req)
case "clearcache": case "clearcache":
ms.ClearCache() ms.ClearCache()
ms.log.Info("cache cleared") ms.log.Info("cache cleared")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment