Explorar el Código

remove debug message

tags/v0.5
patrick hace 6 años
padre
commit
a306a2b45f
Se han modificado 1 ficheros con 13 adiciones y 2 borrados
  1. +13
    -2
      purchase.go

+ 13
- 2
purchase.go Ver fichero



import ( import (
"fmt" "fmt"
"io"
"net/http" "net/http"
) )




for key, value := range r.Form { for key, value := range r.Form {
fmt.Printf("%s= %s\n", key, value) fmt.Printf("%s= %s\n", key, value)
fmt.Fprintf(w, "%s= %s\n", key, value)
//fmt.Fprintf(w, "%s= %s\n", key, value)
} }
sign := md5LeanworkForm(r.Form) sign := md5LeanworkForm(r.Form)


m := RpnReq{}
resp, err := m.SendReq(r.Form)
if err != nil {
fmt.Fprintf(w, "invalid response from RPN")
}

w.Header().Set("Content-Type", resp.Header.Get("Content-Type"))
w.Header().Set("Content-Length", resp.Header.Get("Content-Length"))
io.Copy(w, resp.Body)

fmt.Printf("my md5=%s, valid = %t", sign, isLeanworkFormValid(r.Form)) fmt.Printf("my md5=%s, valid = %t", sign, isLeanworkFormValid(r.Form))
fmt.Fprintf(w, "my md5=%s", sign)
//fmt.Fprintf(w, "my md5=%s", sign)


} }

Cargando…
Cancelar
Guardar