fix: properly convert int to string

I'm new to Go, sorry.
Btw, IT WORKS NOW!!
This commit is contained in:
DarkCat09 2024-07-02 19:40:28 +04:00
parent 453a6d3c71
commit f08b63fa61
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -6,6 +6,7 @@ import (
"database/sql"
"fmt"
"os"
"strconv"
"strings"
_ "github.com/mattn/go-sqlite3"
@ -84,7 +85,7 @@ func handler(ctx *fasthttp.RequestCtx) {
ctx.Response.SetStatusCode(code)
// -- find in FS and read headers+body
path := "storage/" + string(id)
path := "storage/" + strconv.Itoa(id)
fh, err := os.Open(path + "/headers")
if err != nil {