Skip to content

Instantly share code, notes, and snippets.

View mchapman's full-sized avatar

Mark Chapman mchapman

  • ReallyCare CIC
  • London, UK
View GitHub Profile
@ahoward
ahoward / net-http-debug.rb
Created December 10, 2010 20:06
a simple way to debug tons of libs that use ruby's net/http
BEGIN {
require 'net/http'
Net::HTTP.module_eval do
alias_method '__initialize__', 'initialize'
def initialize(*args,&block)
__initialize__(*args, &block)