diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-04-05 20:36:51 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-04-05 20:36:51 +0000 |
commit | f2d0e34bcc828f473fd0760d691f2828d4643b2f (patch) | |
tree | 5a381d551a4d6601c156433be5ed734b6b0295c5 /lib/rbot | |
parent | 4e3660831d7f4fbfe58341e9ce95bef620f13d6b (diff) |
+ (httputil) 'x-rbot-location' header in response object carries the uri from which the response was received (for redirect followers, etc)
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |