2026-08-28 15:17:49: merge [main:657d4302881986193395aa831b36df6fd0798d4d];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s

This commit is contained in:
txix committed 2026-08-28 15:17:49 +03:00
1 parent a269de8e17
commit 36699fdc72
39 files changed
+136 -85

No files matched your search

+11 -1
View File
@@ -6,7 +6,7 @@ import (
"net/http"
"strings"
"github.com/pkg/errors"
"github.com/txix-open/isp-kit/errors"
)
var (
@@ -30,6 +30,8 @@ type Context struct {
adminToken string
queryParams map[string]string
httpJsonUtf8Charset bool
}
func NewContext(
@@ -114,6 +116,14 @@ func (c *Context) SetContext(ctx context.Context) {
c.request = c.request.WithContext(ctx)
}
func (c *Context) EnableHttpJsonUtf8Charset(enable bool) {
c.httpJsonUtf8Charset = enable
}
func (c *Context) IsJsonUtf8CharsetEnabled() bool {
return c.httpJsonUtf8Charset
}
func (c *Context) Param(name string) string {
value := c.request.Header.Get(name)
if value != "" {