Skip to content
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

Invalid response.bodySize in softwareishard.com.har sample HAR #129

Open
gitgrimbo opened this issue Oct 23, 2018 · 0 comments
Open

Invalid response.bodySize in softwareishard.com.har sample HAR #129

gitgrimbo opened this issue Oct 23, 2018 · 0 comments

Comments

@gitgrimbo
Copy link
Collaborator

TL;DR - Probably should replace this (and possibly other) invalid sample HARs with spec-compliant ones.


https://github.com/janodvarko/harviewer/blob/aa648ee1bcc38dac6f0c66a80c1f026afe0edb77/webapp/examples/softwareishard.com.har#L2715..L2773

response.status=304, response.bodySize=7676

Spec says [1] the response.bodySize should be 0. Because of this, it would be impossible to determine if there actually was 0 bytes of message payload for this response, or if the HTTP server erroneously sent a message payload with a HTTP 304 response [2].

bodySize [number] - Size of the received response body in bytes. Set to zero in case of responses coming from the cache (304). Set to -1 if the info is not available.

A 304 response cannot contain a message-body; it is always terminated by the first empty line after the header fields.

@gitgrimbo gitgrimbo changed the title Invalid response.bodySIze in softwareishard.com.har sample HAR Invalid response.bodySize in softwareishard.com.har sample HAR Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant