Skip to content

[Core][Corehttp] Update multipart test-server code#35223

Merged
xiangyan99 merged 2 commits intoAzure:mainfrom
pvaneck:fix-multipart-test-core
Apr 16, 2024
Merged

[Core][Corehttp] Update multipart test-server code#35223
xiangyan99 merged 2 commits intoAzure:mainfrom
pvaneck:fix-multipart-test-core

Conversation

@pvaneck
Copy link
Member

@pvaneck pvaneck commented Apr 16, 2024

Aiohttp now doesn't set payload Content-Length headers in multipart/form-data requests. The motivation was to conform to this RFC: https://datatracker.ietf.org/doc/html/rfc7578#section-4.8 where the Content-Length header is not allowed.

Let's stop checking content length in the test server assertions to stop pipeline test failures. This also enables some multipart tests that were commented out.

Closes: #35220

Aiohttp now doesn't set payload `Content-Length` headers. Let's stop
checking content length in the test server assertions.

Signed-off-by: Paul Van Eck <[email protected]>
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck pvaneck marked this pull request as ready for review April 16, 2024 08:15
@kashifkhan
Copy link
Member

while it doesn't look to be the case, is the content length expected anywhere else in the case of multipart/form-data?

@xiangyan99
Copy link
Member

These AI failures are not related to the change.

@xiangyan99
Copy link
Member

/check-enforcer override

@xiangyan99 xiangyan99 merged commit 9a148c0 into Azure:main Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_multipart_files_content & test_multipart_data_and_files_content fail with aiohttp 3.9.4

4 participants