Browse Source

fixed spelling mistakes

master
emile 3 months ago
parent
commit
0ba69fef0b
Signed by: emile <hanemile@protonmail.com> GPG Key ID: 4D8DD313A751DED7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/http/http.go

+ 3
- 3
src/http/http.go View File

@@ -232,7 +232,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
// Hash the file using the salt defined in the config making is
// possible to give the file to the /view handler without an
// interception being possible.
// The salted file name is hashed again on the reciever side
// The salted file name is hashed again on the receiver side
// making sure that the file to be downloaded is really the file
// specified.
// Overall: this makes sure that only we can provide files that
@@ -274,7 +274,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
// Set the site's title to the title defined in the config
content["SiteTitle"] = viper.GetString("server.name")

// if we're not at the root, we can still go futher down
// if we're not at the root, we can still go further down
if r.RequestURI != "/" {
content["CanGoUp"] = "true"
}
@@ -330,7 +330,7 @@ func breadcrumbs(r *http.Request) structs.Breadcrumbs {
}

// filter filters files returning true if they should be displayed and false if
// not. The descision is made using the hide config from the config file
// not. The decision is made using the hide config from the config file
func filterIsValid(name string) bool {

// hide files starting with a dot if the "hide.file" directive is set