Skip to content

Instantly share code, notes, and snippets.

@benders
Created February 7, 2013 01:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benders/4727732 to your computer and use it in GitHub Desktop.
Save benders/4727732 to your computer and use it in GitHub Desktop.
Display the contents of a DEFLATE compressed file (like an HTTP POST body)
#!/usr/bin/env ruby
require 'zlib'
print Zlib::Inflate.new.inflate($<.read)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment