diff --git a/go.mod b/go.mod index 4232d31..e5f252b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24.1 require ( github.com/mattn/go-sqlite3 v1.14.24 go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.6.0 - go.yarn.social/lextwt v0.1.5-0.20250328015012-42a9ffb46fea + go.yarn.social/lextwt v0.1.5-0.20250402191850-311481301a38 ) require ( diff --git a/go.sum b/go.sum index 4849d89..15a7aa9 100644 --- a/go.sum +++ b/go.sum @@ -114,6 +114,8 @@ go.yarn.social/lextwt v0.1.5-0.20250327005027-02d9b44de4dd h1:Np3zWtQ0GB9WhRFCPb go.yarn.social/lextwt v0.1.5-0.20250327005027-02d9b44de4dd/go.mod h1:P36NPegLbhbFa1A0JOLsDyIQcdM0zdmx8kPKACXry4A= go.yarn.social/lextwt v0.1.5-0.20250328015012-42a9ffb46fea h1:sbWswg5s8VaXB1hBQDs4KOBRBN2jPKtfFlcCQ3EThZk= go.yarn.social/lextwt v0.1.5-0.20250328015012-42a9ffb46fea/go.mod h1:P36NPegLbhbFa1A0JOLsDyIQcdM0zdmx8kPKACXry4A= +go.yarn.social/lextwt v0.1.5-0.20250402191850-311481301a38 h1:WOPc9ZXRLGqQmQazfh3x7QqtYAIvUAnWq+oE3+aHZQA= +go.yarn.social/lextwt v0.1.5-0.20250402191850-311481301a38/go.mod h1:P36NPegLbhbFa1A0JOLsDyIQcdM0zdmx8kPKACXry4A= go.yarn.social/types v0.0.0-20250108134258-ed75fa653ede h1:XV9tuDQ605xxH4qIQPRHM1bOa7k0rJZ2RqA5kz2Nun4= go.yarn.social/types v0.0.0-20250108134258-ed75fa653ede/go.mod h1:+xnDkQ0T0S8emxWIsvxlCAoyF8gBaj0q81hr/VrKc0c= golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= diff --git a/http-html.go b/http-html.go index 7c434df..6788284 100644 --- a/http-html.go +++ b/http-html.go @@ -70,10 +70,10 @@ func (a *HTML) conv(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") hash := r.PathValue("hash") - if (len(hash) < 6 || len(hash) > 8) && !notAny(hash, "abcdefghijklmnopqrstuvwxyz234567") { - w.WriteHeader(http.StatusBadRequest) - return - } + // if (len(hash) < 6 || len(hash) > 8) && !notAny(hash, "abcdefghijklmnopqrstuvwxyz234567") { + // w.WriteHeader(http.StatusBadRequest) + // return + // } limit := 100 if v, ok := strconv.Atoi(r.URL.Query().Get("limit")); ok == nil { @@ -117,17 +117,23 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) { The Watcher @@ -191,7 +197,7 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) {
-
%M
+ %h