From 91ca7bf1baf7ab077bdd63a7a3930c15af5be325 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 09:33:19 +0800 Subject: http_*.go: Use http.Error --- config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 2fdd8c8..dbe06de 100644 --- a/config.go +++ b/config.go @@ -16,9 +16,9 @@ var err_unsupported_database_type = errors.New("Unsupported database type") var config struct { HTTP struct { - Net string `scfg:"net"` - Addr string `scfg:"addr"` - CookieExpiry int `scfg:"cookie_expiry"` + Net string `scfg:"net"` + Addr string `scfg:"addr"` + CookieExpiry int `scfg:"cookie_expiry"` } `scfg:"http"` SSH struct { Net string `scfg:"net"` -- cgit v1.2.3