Skip to content

Commit

Permalink
Merge pull request #37 from vansante/update-arg-name
Browse files Browse the repository at this point in the history
Make argument name clearer
  • Loading branch information
vansante committed Sep 7, 2023
2 parents c256776 + faace50 commit 79bdc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (fs *FileServer) AllowPUT(allow bool) {
}

// DiscloseFilenames sets whether the real filenames should be disclosed on Stat()
func (fs *FileServer) DiscloseFilenames(secret bool) {
fs.discloseFilenames = secret
func (fs *FileServer) DiscloseFilenames(disclose bool) {
fs.discloseFilenames = disclose
}

// CloseIO allows setting whether the server should attempt to close io.ReaderAts and io.WriterAts once its done with them
Expand Down

0 comments on commit 79bdc24

Please sign in to comment.