summaryrefslogtreecommitdiff
path: root/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'post.go')
-rw-r--r--post.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/post.go b/post.go
index 8ced07f..f18de27 100644
--- a/post.go
+++ b/post.go
@@ -54,7 +54,10 @@ func DoPost(baseURL string, route string, data []byte) (*HttpRequest, error) {
reqPB, err := ReqToPB(req)
reqPB.URL = finalURL.String()
- reqPB.Body = body
+ reqPB.ClientData = data
+ reqPB.ClientDataLen = int64(len(data))
+ reqPB.ServerData = body
+ reqPB.ServerDataLen = int64(len(body))
return reqPB, nil
}