about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:50:46 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:50:46 +0100
commit7aeb5dc30b6841275b79283ab7e87814510ef50c (patch)
tree6f1dc7983f91e033351d803e1efa10e64786d680
parentc18c61e153771890dd8cfee863361e0624ba028d (diff)
removed ubiquitous stuff
-rw-r--r--src/http/http.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/http/http.go b/src/http/http.go
index aeb3fbd..f4569d5 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -127,9 +127,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 	content = make(map[string]interface{})
 
 	root := viper.GetString("server.root")
-	requestURI := fmt.Sprintf("%s%s", root, r.RequestURI)
-	logrus.Tracef("root: %s", root)
-	logrus.Tracef("requestURI: %s", root)
+	requestPath := fmt.Sprintf("%s%s", root, r.URL.Path)
 
 	query := r.URL.Query()