{"action":"created","issue":{"url":"https://api.github.com/repos/betamaxteam/betamax/issues/128","repository_url":"https://api.github.com/repos/betamaxteam/betamax","labels_url":"https://api.github.com/repos/betamaxteam/betamax/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/betamaxteam/betamax/issues/128/comments","events_url":"https://api.github.com/repos/betamaxteam/betamax/issues/128/events","html_url":"https://github.com/betamaxteam/betamax/issues/128","id":26486960,"number":128,"title":"Content-Length header improvements during replay","user":{"login":"dkowis","id":28048,"avatar_url":"https://avatars.githubusercontent.com/u/28048?v=3","gravatar_id":"","url":"https://api.github.com/users/dkowis","html_url":"https://github.com/dkowis","followers_url":"https://api.github.com/users/dkowis/followers","following_url":"https://api.github.com/users/dkowis/following{/other_user}","gists_url":"https://api.github.com/users/dkowis/gists{/gist_id}","starred_url":"https://api.github.com/users/dkowis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkowis/subscriptions","organizations_url":"https://api.github.com/users/dkowis/orgs","repos_url":"https://api.github.com/users/dkowis/repos","events_url":"https://api.github.com/users/dkowis/events{/privacy}","received_events_url":"https://api.github.com/users/dkowis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-01-28T23:41:19Z","updated_at":"2016-02-17T12:17:55Z","closed_at":null,"body":"It'd be really handy to have a configurable option to force re-calculation of the `Content-Length` header regardless of what it's set to in the tape. As I'm testing bodies, and mostly I just care about the content itself, not the gritty HTTP details, I'd like to be able to modify my body, or the headers, in the YAML file without having to manually re-calculate the size of the content.\r\n\r\nOn the other hand, if I'm wanting to test stuff where the content type header is blatantly wrong, to handle odd HTTP conditions, I should still be able to do this, but Betamax should warn me that it's going to do Bad Things<sup>TM</sup>\r\n\r\nBecause the symptom, at least with some clients, of not having a proper `Content-Length` header size set, when it is set too large for the modified body, the proxy appears to hang. Reference debugging in #126 "},"comment":{"url":"https://api.github.com/repos/betamaxteam/betamax/issues/comments/185175462","html_url":"https://github.com/betamaxteam/betamax/issues/128#issuecomment-185175462","issue_url":"https://api.github.com/repos/betamaxteam/betamax/issues/128","id":185175462,"user":{"login":"cowboygneox","id":1126866,"avatar_url":"https://avatars.githubusercontent.com/u/1126866?v=3","gravatar_id":"","url":"https://api.github.com/users/cowboygneox","html_url":"https://github.com/cowboygneox","followers_url":"https://api.github.com/users/cowboygneox/followers","following_url":"https://api.github.com/users/cowboygneox/following{/other_user}","gists_url":"https://api.github.com/users/cowboygneox/gists{/gist_id}","starred_url":"https://api.github.com/users/cowboygneox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowboygneox/subscriptions","organizations_url":"https://api.github.com/users/cowboygneox/orgs","repos_url":"https://api.github.com/users/cowboygneox/repos","events_url":"https://api.github.com/users/cowboygneox/events{/privacy}","received_events_url":"https://api.github.com/users/cowboygneox/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T12:17:55Z","updated_at":"2016-02-17T12:17:55Z","body":"@dkowis This is actually a feature that I plan on implementing shortly for your exact reasons. `Content-Length` does not need to be a stored header for any reason, and should be calculated on the fly."}}