Skip to content

Commit

Permalink
Merge pull request #1079 from Fenny/master
Browse files Browse the repository at this point in the history
✏ fix typo
  • Loading branch information
Fenny authored Dec 16, 2020
2 parents 3f89490 + 3b956ef commit f894140
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ func (app *App) Listen(addr string) error {
// ListenTLS serves HTTPs requests from the given addr.
// certFile and keyFile are the paths to TLS certificate and key file.

// app.Listen(":8080", "./cert.pem", "./cert.key")
// app.Listen(":8080", "./cert.pem", "./cert.key")
// app.ListenTLS(":8080", "./cert.pem", "./cert.key")
// app.ListenTLS(":8080", "./cert.pem", "./cert.key")
func (app *App) ListenTLS(addr, certFile, keyFile string) error {
// Check for valid cert/key path
if len(certFile) == 0 && len(keyFile) == 0 {
if len(certFile) == 0 || len(keyFile) == 0 {
return errors.New("tls: provide a valid cert or key path")
}
// Prefork is supported
Expand Down

0 comments on commit f894140

Please sign in to comment.