Explorar el Código

unauthorized request is turned down if without signature

master
Patrick Peng Sun hace 8 años
padre
commit
8fb44b6acf
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      server.go

+ 1
- 0
server.go Ver fichero

@@ -18,6 +18,7 @@ func apiV1Main(w http.ResponseWriter, r *http.Request) {
logRequestDebug(httputil.DumpRequest(r, true))
if checkSignature(r) == false {
log.Println("signature of URL incorrect")
w.WriteHeader(http.StatusUnauthorized)
fmt.Fprintf(w, "") //empty string
return
}

Cargando…
Cancelar
Guardar