diff --git a/server.go b/server.go index 5922052..e79a195 100644 --- a/server.go +++ b/server.go @@ -169,7 +169,7 @@ func handleConn(conn *tls.Conn, baseURL, title, home_message string) { // profile if strings.HasPrefix(path, "/profile/") { // skip prefix - path = path[8:] + path = path[9:] _, err = strconv.ParseUint(path, 10, 64) if err != nil { log.Println("invalid request: %s", err) @@ -186,7 +186,7 @@ func handleConn(conn *tls.Conn, baseURL, title, home_message string) { printProfile(conn, baseURL, path) } /* thread */ else if strings.HasPrefix(path, "/thread/") { // skip prefix - path = path[7:] + path = path[8:] _, err = strconv.ParseUint(path, 10, 64) if err != nil {