From b96f68ce7b9844d4b36cbb992c2f82d770069dbd Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Thu, 28 May 2015 03:02:53 +0200 Subject: [PATCH] Fixes RunTLS() implementation - thanks @Dal-Papa --- gin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gin.go b/gin.go index 570ac83a..a47372a2 100644 --- a/gin.go +++ b/gin.go @@ -171,11 +171,11 @@ func (engine *Engine) Run(addr string) (err error) { return } -func (engine *Engine) RunTLS(addr string, cert string, key string) (err error) { +func (engine *Engine) RunTLS(addr string, certFile string, keyFile string) (err error) { debugPrint("Listening and serving HTTPS on %s\n", addr) defer func() { debugPrintError(err) }() - err = http.ListenAndServe(addr, engine) + err = http.ListenAndServeTLS(addr, certFile, keyFile, engine) return }