From f2d0e34bcc828f473fd0760d691f2828d4643b2f Mon Sep 17 00:00:00 2001 From: Dmitry Kim Date: Thu, 5 Apr 2007 20:36:51 +0000 Subject: + (httputil) 'x-rbot-location' header in response object carries the uri from which the response was received (for redirect followers, etc) --- lib/rbot/core/utils/httputil.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbot') diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index 476a71c1..318c5483 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -438,6 +438,7 @@ class HttpUtil get_proxy(uri, opts).start do |http| http.request(req) do |resp| + resp['x-rbot-location'] = uri.to_s if Net::HTTPNotModified === resp debug "not modified" begin -- cgit v1.2.3