-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Recording framework isn't correctly recording Content-Length of Head response #13510
Comments
I just tested this locally and the recording didn't include the HEAD request with the Content-Length of 0. Playback worked fine after re-recording. Is it possible there was a server issue? Can you try to re-record? |
@kasobol-msft can you point me to the specific test? |
azure-sdk-for-net/sdk/storage/Azure.Storage.Blobs/tests/BlobBaseClientTests.cs Lines 927 to 947 in 69cf78f
|
In this test, the 2nd to last call is GetProperties(). Its response is supposed to contain the header "Content-Length=1024" (this is what happens in live mode). Unfortunately, it is being recorded as 0. (Line 2292, GitHub won't load the link I tried to create to that specific line.)
I believe this is because the response doesn't have a body, and the recording framework is setting Content-Length = 0 base on the body length, ignoring the actual header.
The text was updated successfully, but these errors were encountered: