Explorar el Código

signature check for all requests

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

+ 4
- 0
server.go Ver fichero

@@ -16,6 +16,10 @@ import (
//
func apiV1Main(w http.ResponseWriter, r *http.Request) {
logRequestDebug(httputil.DumpRequest(r, true))
if checkSignature(r) == false {
fmt.Fprintf(w, "") //empty string
return
}

switch r.Method {
case "POST":

Cargando…
Cancelar
Guardar