Skip to content

Commit

Permalink
Rename function to a more logical name (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
vansante authored Apr 24, 2020
1 parent 2802c43 commit 91c5d50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ func (fs *FileServer) Serve(socket net.Listener) error {
return fs.server.Serve(socket)
}

// Serve starts serving the FileServer over HTTPS over the given socket
// ServeHTTPS always returns a non-nil error. After Shutdown or Close, the
// ServeTLS starts serving the FileServer over HTTPS over the given socket
// ServeTLS always returns a non-nil error. After Shutdown or Close, the
// returned error is ErrServerClosed.
func (fs *FileServer) ServeHTTPS(socket net.Listener, certFile, keyFile string) error {
func (fs *FileServer) ServeTLS(socket net.Listener, certFile, keyFile string) error {
return fs.server.ServeTLS(socket, certFile, keyFile)
}

Expand Down

0 comments on commit 91c5d50

Please sign in to comment.