Changeset 23 in code


Ignore:
Timestamp:
Oct 19, 2021, 6:35:26 AM (4 years ago)
Author:
dev
Message:

Prevent serving metadata files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/partage.go

    r22 r23  
    176176
    177177
    178                 //link := conf.baseuri + conf.filectx + filepath.Base(tmp.Name())
    179                 link := conf.baseuri + conf.metactx + filepath.Base(tmp.Name()) + ".json"
     178                link := conf.baseuri + conf.filectx + filepath.Base(tmp.Name())
    180179                links = append(links, link)
    181180        }
     
    231230        http.HandleFunc("/", uploader)
    232231        http.Handle(conf.filectx, http.StripPrefix(conf.filectx, http.FileServer(http.Dir(conf.filepath))))
    233         http.Handle(conf.metactx, http.StripPrefix(conf.metactx, http.FileServer(http.Dir(conf.metapath))))
    234232        http.ListenAndServe("0.0.0.0:8080", nil)
    235233}
Note: See TracChangeset for help on using the changeset viewer.