internetarchive / liveweb

Liveweb proxy of the Wayback Machine project
https://web.archive.org/
44 stars 13 forks source link

Return compressed data for small payloads #18

Closed nibrahim closed 12 years ago

nibrahim commented 12 years ago

The current implementation is returning uncompressed payloads for some cases and this is wrong.

This was introduced with the optimisation to return the StringIO directly for small payloads rather than a handle to the arc file on disc.

nibrahim commented 12 years ago

The current implementation is also returning only the payload and not the arc header.