diff --git a/server.go b/server.go index 1684d65..870aeba 100644 --- a/server.go +++ b/server.go @@ -58,17 +58,20 @@ func handler(ctx *fasthttp.RequestCtx) { bytes.Equal(scheme, []byte("https")), ) + urlToSearch := fmt.Sprintf( + "%s://%s:%s%s", + scheme, + host, + port, + ctx.RequestURI(), + ) row := stmt.QueryRow( string(ctx.Method()), - fmt.Sprintf( - "%s://%s:%s%s", - scheme, - host, - port, - ctx.RequestURI(), - ), + urlToSearch, ) + // log.Println(urlToSearch) + var id int var code int