Skip to content

Commit 3434db9

Browse files
chore: try remove compression issues
1 parent 8bd843d commit 3434db9

File tree

287 files changed

+7
-1498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+7
-1498
lines changed

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def _filter_request_headers(request: Request) -> Request: # type: ignore[no-any
136136

137137
def _filter_response_headers(response: dict[str, Any]) -> dict[str, Any]:
138138
"""Filter sensitive headers from response before recording."""
139+
# Remove Content-Encoding to prevent decompression issues on replay
140+
for encoding_header in ["Content-Encoding", "content-encoding"]:
141+
response["headers"].pop(encoding_header, None)
142+
139143
for header_name, replacement in HEADERS_TO_FILTER.items():
140144
for variant in [header_name, header_name.upper(), header_name.title()]:
141145
if variant in response["headers"]:

lib/crewai/tests/cassettes/TestLLMHooksIntegration.test_direct_llm_call_hooks_integration.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ interactions:
5252
headers:
5353
Connection:
5454
- keep-alive
55-
Content-Encoding:
56-
- gzip
5755
Content-Type:
5856
- application/json
5957
Date:

lib/crewai/tests/cassettes/TestLLMHooksIntegration.test_lite_agent_hooks_integration_with_real_llm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ interactions:
5757
headers:
5858
Connection:
5959
- keep-alive
60-
Content-Encoding:
61-
- gzip
6260
Content-Type:
6361
- application/json
6462
Date:

lib/crewai/tests/cassettes/agents/test_agent_custom_max_iterations.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ interactions:
7373
- CF-RAY-XXX
7474
Connection:
7575
- keep-alive
76-
Content-Encoding:
77-
- gzip
7876
Content-Type:
7977
- application/json
8078
Date:
@@ -205,8 +203,6 @@ interactions:
205203
- CF-RAY-XXX
206204
Connection:
207205
- keep-alive
208-
Content-Encoding:
209-
- gzip
210206
Content-Type:
211207
- application/json
212208
Date:

lib/crewai/tests/cassettes/agents/test_agent_error_on_parsing_tool.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ interactions:
7272
- CF-RAY-XXX
7373
Connection:
7474
- keep-alive
75-
Content-Encoding:
76-
- gzip
7775
Content-Type:
7876
- application/json
7977
Date:
@@ -223,8 +221,6 @@ interactions:
223221
- CF-RAY-XXX
224222
Connection:
225223
- keep-alive
226-
Content-Encoding:
227-
- gzip
228224
Content-Type:
229225
- application/json
230226
Date:

lib/crewai/tests/cassettes/agents/test_agent_execute_task_basic.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ interactions:
6464
- CF-RAY-XXX
6565
Connection:
6666
- keep-alive
67-
Content-Encoding:
68-
- gzip
6967
Content-Type:
7068
- application/json
7169
Date:

lib/crewai/tests/cassettes/agents/test_agent_execute_task_with_context.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ interactions:
6666
- CF-RAY-XXX
6767
Connection:
6868
- keep-alive
69-
Content-Encoding:
70-
- gzip
7169
Content-Type:
7270
- application/json
7371
Date:

lib/crewai/tests/cassettes/agents/test_agent_execute_task_with_custom_llm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ interactions:
6565
- CF-RAY-XXX
6666
Connection:
6767
- keep-alive
68-
Content-Encoding:
69-
- gzip
7068
Content-Type:
7169
- application/json
7270
Date:

lib/crewai/tests/cassettes/agents/test_agent_execute_task_with_tool.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ interactions:
7070
- CF-RAY-XXX
7171
Connection:
7272
- keep-alive
73-
Content-Encoding:
74-
- gzip
7573
Content-Type:
7674
- application/json
7775
Date:

lib/crewai/tests/cassettes/agents/test_agent_execution.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ interactions:
6464
- CF-RAY-XXX
6565
Connection:
6666
- keep-alive
67-
Content-Encoding:
68-
- gzip
6967
Content-Type:
7068
- application/json
7169
Date:

0 commit comments

Comments
 (0)