Skip to content

Commit

Permalink
Fixes RunTLS() implementation
Browse files Browse the repository at this point in the history
- thanks @Dal-Papa
  • Loading branch information
manucorporat committed May 28, 2015
1 parent 34411c8 commit b96f68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b96f68c

Please sign in to comment.