File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ func (r *RequestAccessorV2) EventToRequest(req events.APIGatewayV2HTTPRequest) (
123
123
124
124
path := req .RawPath
125
125
126
- //if RawPath empty is, populate from request context
126
+ // if RawPath empty is, populate from request context
127
127
if len (path ) == 0 {
128
128
path = req .RequestContext .HTTP .Path
129
129
}
@@ -158,6 +158,8 @@ func (r *RequestAccessorV2) EventToRequest(req events.APIGatewayV2HTTPRequest) (
158
158
bytes .NewReader (decodedBody ),
159
159
)
160
160
161
+ httpRequest .RemoteAddr = req .RequestContext .HTTP .SourceIP
162
+
161
163
if err != nil {
162
164
fmt .Printf ("Could not convert request %s:%s to http.Request\n " , req .RequestContext .HTTP .Method , req .RequestContext .HTTP .Path )
163
165
log .Println (err )
You can’t perform that action at this time.
0 commit comments