Kaynağa Gözat

unauthorized request is turned down if without signature

master
Patrick Peng Sun 8 yıl önce
ebeveyn
işleme
8fb44b6acf
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. +1
    -0
      server.go

+ 1
- 0
server.go Dosyayı Görüntüle

@@ -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
}

Yükleniyor…
İptal
Kaydet