Explorar el Código

removing hard-coded references to transfer.sh

tags/v1.0.0
Remco hace 9 años
padre
commit
c5f0f04248
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      transfersh-server/handlers.go

+ 2
- 2
transfersh-server/handlers.go Ver fichero

@@ -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")

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) {


Cargando…
Cancelar
Guardar