Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
Patrick
/
wechat_hitxy
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
signature check for all requests
master
Patrick Peng Sun
8 anni fa
parent
991cd591d1
commit
256ac67577
1 ha cambiato i file
con
4 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
server.go
+ 4
- 0
server.go
Vedi File
@@ -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":
Write
Preview
Loading…
Annulla
Salva