diff --git a/DONATOR.MD b/DONATOR.MD index c7a954564..047fffc24 100644 --- a/DONATOR.MD +++ b/DONATOR.MD @@ -71,6 +71,7 @@ We currently accept donation by Alipay/WechatPay, please note your github/gitee |[侯哥](http://www.macnie.com)|wechat|¥10.00| |如果🍋|alipay|¥100.00| 错过的奶茶^_^ |蔡蔡|wechat|¥666.00| gf真强大,让项目省心 +|jack|wechat|¥100.00| diff --git a/net/ghttp/ghttp_server_config.go b/net/ghttp/ghttp_server_config.go index 26e4660fc..3b3e1f5d7 100644 --- a/net/ghttp/ghttp_server_config.go +++ b/net/ghttp/ghttp_server_config.go @@ -129,6 +129,9 @@ func ConfigFromMap(m map[string]interface{}) (ServerConfig, error) { // Handler returns the request handler of the server. func (s *Server) Handler() http.Handler { + if s.config.Handler == nil { + return s + } return s.config.Handler }