|
|
|
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func crmcache(w http.ResponseWriter, r *http.Request) { |
|
|
func crmcache(w http.ResponseWriter, r *http.Request) { |
|
|
// if !checkSignature(r) { |
|
|
|
|
|
// w.WriteHeader(http.StatusUnauthorized) |
|
|
|
|
|
// fmt.Fprintf(w, "Expired or invalid link") |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
debugDumpHTTPRequest(r) |
|
|
|
|
|
if !checkSignatureByToken(r, IntraAPIConfig.CRMSecrete) { |
|
|
|
|
|
w.WriteHeader(http.StatusUnauthorized) |
|
|
|
|
|
fmt.Fprintf(w, "Expired or invalid link") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
v, err := url.ParseQuery(r.URL.RawQuery) |
|
|
v, err := url.ParseQuery(r.URL.RawQuery) |
|
|
if err != nil { |
|
|
if err != nil { |