mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Allow changing the "selif" path name
This commit is contained in:
parent
6290f408ff
commit
c746f70c10
13 changed files with 27 additions and 16 deletions
|
|
@ -173,7 +173,7 @@ func TestFileNotFound(t *testing.T) {
|
|||
|
||||
filename := generateBarename()
|
||||
|
||||
req, err := http.NewRequest("GET", "/selif/"+filename, nil)
|
||||
req, err := http.NewRequest("GET", "/"+Config.selifPath+filename, nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
@ -941,7 +941,7 @@ func TestPutAndOverwrite(t *testing.T) {
|
|||
|
||||
// Make sure it's the new file
|
||||
w = httptest.NewRecorder()
|
||||
req, err = http.NewRequest("GET", "/selif/"+myjson.Filename, nil)
|
||||
req, err = http.NewRequest("GET", "/"+Config.selifPath+myjson.Filename, nil)
|
||||
mux.ServeHTTP(w, req)
|
||||
|
||||
if w.Code == 404 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue