This repository was archived by the owner on May 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ func (r *RequestAccessor) EventToRequest(req events.APIGatewayProxyRequest) (*ht
190
190
return nil , err
191
191
}
192
192
193
+ httpRequest .RemoteAddr = req .RequestContext .Identity .SourceIP
194
+
193
195
if req .MultiValueHeaders != nil {
194
196
for k , values := range req .MultiValueHeaders {
195
197
for _ , value := range values {
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
}
@@ -164,6 +164,8 @@ func (r *RequestAccessorV2) EventToRequest(req events.APIGatewayV2HTTPRequest) (
164
164
return nil , err
165
165
}
166
166
167
+ httpRequest .RemoteAddr = req .RequestContext .HTTP .SourceIP
168
+
167
169
for _ , cookie := range req .Cookies {
168
170
httpRequest .Header .Add ("Cookie" , cookie )
169
171
}
You can’t perform that action at this time.
0 commit comments