bugs...
This commit is contained in:
parent
f84cbadf2e
commit
f54b44f458
1 changed files with 3 additions and 3 deletions
6
http.go
6
http.go
|
@ -177,17 +177,17 @@ func (it *httpServer) writeResponse(writer http.ResponseWriter, v interface{}) e
|
|||
}
|
||||
|
||||
func (it *httpServer) verifyRequest(r *http.Request, v interface{}) (error) {
|
||||
all, err := ioutil.ReadAll(hex.NewDecoder(r.Body))
|
||||
hexBody, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
body, err := ioutil.ReadAll(r.Body)
|
||||
all, err := hex.DecodeString(string(hexBody))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Printf("req: %s", body)
|
||||
log.Printf("req: %s", hexBody)
|
||||
|
||||
encPasswordAndIV := all[:256]
|
||||
encBody := all[256:]
|
||||
|
|
Loading…
Reference in a new issue