Skip to content

Commit 1391ddb

Browse files
committed
change delims to match wol-redirect
1 parent 87f0190 commit 1391ddb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internals/server/http.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"net/http"
66
"net/url"
77
"strconv"
8+
"text/template"
89
"time"
910

1011
"github.com/codeshelldev/gotl/pkg/logger"
@@ -108,7 +109,10 @@ func activityHandler(w http.ResponseWriter, req *http.Request) {
108109
"PATH": URL.Path,
109110
}
110111

111-
query, err := templating.RenderTemplate("query", config.ENV.QUERY_PATTERN, variables)
112+
templt := templating.CreateTemplateWithFunc("query", template.FuncMap{})
113+
templt.Delims("{", "}")
114+
115+
query, err := templating.ParseTemplate(templt, config.ENV.QUERY_PATTERN, variables)
112116

113117
if err != nil {
114118
logger.Error("Error building query: ", err.Error())

0 commit comments

Comments
 (0)