fix typo
Kim committed
Nov 19, 2025 at 14:48 UTC
d70b83a409f46d08d4b3973e80c9b45ddeae5a4a
1 file changed
+2
-1
cmd/webclient/main_js.go
+2
-1
@@ -24,6 +24,7 @@ import (
24
"golang.org/x/net/idna"
25
"gosuda.org/portal/cmd/webclient/httpjs"
26
"gosuda.org/portal/sdk"
27
+ "gosuda.org/portal/utils"
28
)
29
30
var (
@@ -393,7 +394,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
394
w.Header()[key] = value
395
}
396
396
- if sdk.IsHTMLContentType(resp.Header.Get("Content-Type")) {
397
+ if utils.IsHTMLContentType(resp.Header.Get("Content-Type")) {
398
w.WriteHeader(resp.StatusCode)
399
body, err := io.ReadAll(resp.Body)
400
if err != nil {