Skip to content
This repository
Browse code

Mechanize::Page::Image#url returns a URI object only if the source is…

… relative

ref #297
  • Loading branch information...
commit 484c8a35d20e751b79dc43032f2bd7cc61ba9f15 1 parent 2fde1c9
Lee Jarvis leejarvis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/mechanize/page/image.rb
2  lib/mechanize/page/image.rb
@@ -162,7 +162,7 @@ def url
162 162 if page.bases[0] then
163 163 page.bases[0].href + src
164 164 else
165   - URI page.uri + src
  165 + page.uri + src
166 166 end
167 167 else
168 168 URI src

0 comments on commit 484c8a3

Please sign in to comment.
Something went wrong with that request. Please try again.