<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,7 +45,7 @@
 #  - make a kickass demo, including autocompleting-ajax photo lookup ala http://mir.aculo.us/images/autocomplete1.mov
 
 require 'cgi'
-require 'net/http'
+require 'open-uri'
 
 # Flickr client class. Requires an API key, and optionally takes an email and password for authentication
 class Flickr
@@ -78,7 +78,7 @@ class Flickr
   
   # Does an HTTP GET on a given URL and returns the response body
   def http_get(url)
-    Net::HTTP.get_response(URI.parse(url)).body.to_s
+    open(URI.parse(url)) {|h| h.read }
   end
 
   # Stores authentication credentials to use on all subsequent calls.
@@ -318,7 +318,7 @@ class Flickr
 
     # Returns the photo file data itself, in any specified size. Example: File.open(photo.title, 'w') { |f| f.puts photo.file }
     def file(size='Medium')
-      Net::HTTP.get_response(URI.parse(source(size))).body
+      open(URI.parse(source(size))) {|h| h.read }
     end
 
     # Unique filename for the image, based on the Flickr NSID</diff>
      <filename>vendor/flickr/flickr.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c77b14b5f45a5034cc12134c5f494157c203b0aa</id>
    </parent>
  </parents>
  <author>
    <name>Fr&#233;d&#233;ric de Villamil</name>
    <email>frederic@de-villamil.com</email>
  </author>
  <url>http://github.com/fdv/typo/commit/7fa3e20d0d21f519389fe0a00f849167ef052076</url>
  <id>7fa3e20d0d21f519389fe0a00f849167ef052076</id>
  <committed-date>2009-06-28T06:01:05-07:00</committed-date>
  <authored-date>2009-06-28T06:01:05-07:00</authored-date>
  <message>Fixing a bug where vendor/flickr/flickr.rb could not handle 302 response. Closes ticket #106</message>
  <tree>accb86f6921d221963a67ec0fd914f1f1c758ce2</tree>
  <committer>
    <name>Fr&#233;d&#233;ric de Villamil</name>
    <email>frederic@de-villamil.com</email>
  </committer>
</commit>
