File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
localstack-core/localstack/services/apigateway/next_gen/execute_api Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,6 @@ def create_test_invocation_context(
164
164
return invocation_context
165
165
166
166
167
- def _fix_headers (headers : Headers ) -> Headers :
168
- headers .remove ("Content-Length" )
169
-
170
- return headers
171
-
172
-
173
167
def run_test_invocation (
174
168
test_request : TestInvokeMethodRequest , deployment : RestApiDeployment
175
169
) -> TestInvokeMethodResponse :
@@ -193,7 +187,10 @@ def run_test_invocation(
193
187
test_chain .handle (context = invocation_context , response = test_response )
194
188
end_time = datetime .datetime .now ()
195
189
196
- response_headers = _fix_headers (test_response .headers .copy ())
190
+ response_headers = test_response .headers .copy ()
191
+ # AWS does not return the Content-Length for TestInvokeMethod
192
+ response_headers .remove ("Content-Length" )
193
+
197
194
log = log_template (invocation_context , response_headers )
198
195
199
196
headers = dict (response_headers )
You can’t perform that action at this time.
0 commit comments