This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Patrick
/
wechat_hitxy
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
signature check for all requests
master
Patrick Peng Sun
8 years ago
parent
991cd591d1
commit
256ac67577
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
server.go
+ 4
- 0
server.go
View 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…
Cancel
Save