From 51cadd2d4954d5e34bcec8b99b7e81f116aa8ab9 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Thu, 27 Apr 2023 15:39:32 +0800 Subject: [PATCH] fix: ignore handle in json (close #4251 close #4252) --- internal/model/args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/args.go b/internal/model/args.go index 6e224ee4..e2310e96 100644 --- a/internal/model/args.go +++ b/internal/model/args.go @@ -23,7 +23,7 @@ type Link struct { Status int // status maybe 200 or 206, etc FilePath *string // local file, return the filepath Expiration *time.Duration // url expiration time - Handle func(w http.ResponseWriter, r *http.Request) error // custom handler + Handle func(w http.ResponseWriter, r *http.Request) error `json:"-"` // custom handler } type OtherArgs struct {