Revert "gorequest wasn't sending the request for validation"

This reverts commit 2ed2786f8e.
This commit is contained in:
Bogdan Constantinescu
2015-02-24 21:52:20 +02:00
parent 9f9d0fe1cb
commit 9379daa02b

View File

@@ -99,15 +99,9 @@ func NewWithConfig(config Config) Client {
// Verify sends receipts and gets validation result
func (c *Client) Verify(req *IAPRequest) (IAPResponse, error) {
result := IAPResponse{}
obj, err_json := json.Marshal(req)
if err_json != nil {
return result, fmt.Errorf("%v", err_json)
}
res, body, errs := gorequest.New().
Post(c.URL).
Type("json").
SendString(string(obj)).
Send(req).
Timeout(c.TimeOut).
End()