Permalink
Commits on Oct 12, 2012
  1. Better User-Agent

    tarcieri committed Oct 12, 2012
  2. Update CHANGES

    tarcieri committed Oct 12, 2012
Commits on Sep 6, 2012
  1. Merge pull request #16 from samphippen/cant-open-ssl

    tarcieri committed Sep 6, 2012
    Https urls can't be opened
  2. Fix some more real world connection issues

    samphippen committed Sep 6, 2012
    specifically this didn't deal with the case where the server
    used a local redirect instead of a global one
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  3. Add some real world sites to the specs

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  4. Now that we have a working library, we can have a working test

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  5. Update specs for new user agent header

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  6. Add a user agent if one hasn't been specified

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  7. Fix openssl context and host header

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  8. Fix the https test

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  9. Add a spec that exposes the failing behaviour

    samphippen committed Sep 6, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Commits on Sep 5, 2012
  1. Merge pull request #15 from samphippen/request-stream-refactor

    tarcieri committed Sep 5, 2012
    Request#stream refactor
  2. Add some specs for the argument error in the constructor

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  3. Fix some more conditionals in request_stream

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  4. Fix some more conditionals

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  5. Fix stream body type checking

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  6. Move stream to the top of the class

    samphippen committed Sep 5, 2012
    this is done because it's the main method that this class
    has now replaced
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  7. Break body and header sending into their own methods

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  8. Add some docstrings

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  9. Swap case with conditionals, also remove some predicates

    samphippen committed Sep 5, 2012
    there were places where the predicates could be folded into the
    conditional statements hovering above them once this was turned
    into an if
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  10. Stream will now raise if body is of the wrong type

    samphippen committed Sep 5, 2012
    before this type checking was done during the actual stream method,
    now we do it in the constructor of the stream class
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  11. Make request_headers an array

    samphippen committed Sep 5, 2012
    before request headers was a string and we were just building them
    up as we went along, now it's an array of the headers we actually
    want. I think this is cleaner
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  12. Lift sending header out of the case block

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  13. Normalize CRLF appending in header creation

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  14. Break body type specific header appending into own function

    samphippen committed Sep 5, 2012
    this is done because I'm going to make it join them all with CRLFs
    in a bit, but for now just breaking things into their own methods
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  15. Break header adding into it's own method

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  16. Replace all socket with @socket

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  17. Replace all request_header with @request_header

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  18. Remove an extraneous to_s

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  19. Remove an extraneous return

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  20. Break Request#stream into a method object RequestStream

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  21. Merge pull request #14 from samphippen/remove-trailing-whitespace

    tarcieri committed Sep 5, 2012
    Remove trailing whitespace
  22. Strip trailing whitespace from proxy_server.rb

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  23. Remove trailing whitespace from response_spec

    samphippen committed Sep 5, 2012
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>