本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
Patrick
/
wechat_hitxy
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
signature check for all requests
master
Patrick Peng Sun
8 年之前
父節點
991cd591d1
當前提交
256ac67577
共有
1 個檔案被更改
,包括
4 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
server.go
+ 4
- 0
server.go
查看文件
@@ -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…
取消
儲存