teampoltergeist / poltergeist

A PhantomJS driver for Capybara
MIT License
2.5k stars 415 forks source link

Getting Content-Length Response Headers in gzipped Network Traffic #849

Closed tomgallagher closed 7 years ago

tomgallagher commented 7 years ago

Hi

When content is gzipped, Phantom or one of its constituent parts deletes the content-length header.

See this issue https://github.com/ariya/phantomjs/issues/10156

Not sure why it would do this but can anyone suggest a workaround with Capyabara/Poltergeist DSL?

Thanks

Tom

twalpole commented 7 years ago

If PhantomJS isn't providing the info there is no way for Poltergeist to get it.