Changeset 16 in code for trunk/partage.go


Ignore:
Timestamp:
Oct 18, 2021, 2:56:25 PM (4 years ago)
Author:
dev
Message:

Fix /index.html URL recognition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/partage.go

    r14 r16  
    165165        // r.URL.Path is sanitized regarding "." and ".."
    166166        filename := r.URL.Path
    167         if r.URL.Path == "/" || r.URL.Path == "/index" {
     167        if r.URL.Path == "/" || r.URL.Path == "/index.html" {
    168168                data := templatedata{ Maxsize: humanize.IBytes(uint64(conf.maxsize))}
    169169                servetemplate(w, "/index.html", data)
Note: See TracChangeset for help on using the changeset viewer.