mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2020-11-18 19:53:40 -08:00
removing hard-coded references to transfer.sh
This commit is contained in:
parent
3a5d756c00
commit
c5f0f04248
@ -176,7 +176,7 @@ func postHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(w, "https://transfer.sh/%s/%s\n", token, filename)
|
fmt.Fprintf(w, "https://%s/%s/%s\n", ipAddrFromRemoteAddr(r.Host), token, filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,7 +290,7 @@ func putHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
w.Header().Set("Content-Type", "text/plain")
|
w.Header().Set("Content-Type", "text/plain")
|
||||||
|
|
||||||
fmt.Fprintf(w, "https://transfer.sh/%s/%s\n", token, filename)
|
fmt.Fprintf(w, "https://%s/%s/%s\n", ipAddrFromRemoteAddr(r.Host), token, filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
func zipHandler(w http.ResponseWriter, r *http.Request) {
|
func zipHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user