summaryrefslogtreecommitdiff
path: root/reqToPB.go
diff options
context:
space:
mode:
Diffstat (limited to 'reqToPB.go')
-rw-r--r--reqToPB.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/reqToPB.go b/reqToPB.go
index 747f1d4..f5aa766 100644
--- a/reqToPB.go
+++ b/reqToPB.go
@@ -58,14 +58,14 @@ func ReqToPB(r *http.Request) (*HttpRequest, error) {
// log.Info("TRYING TO MARSHAL bytes:", len(msg), err)
pb := &HttpRequest{
- Method: r.Method,
- Url: r.URL.String(),
- Proto: r.Proto,
- Headers: headers,
- RemoteAddr: getClientIP(r),
- Host: r.Host,
- Body: msg,
- Hostname: r.Header.Get("hostname"),
+ Method: r.Method,
+ URL: r.URL.String(),
+ Proto: r.Proto,
+ Headers: headers,
+ IP: getClientIP(r),
+ Host: r.Host,
+ Body: msg,
+ Hostname: r.Header.Get("hostname"),
}
pb.Route = cleanURL(r.URL.Path)