Browse files

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

… relative

ref #297
  • Loading branch information...
1 parent 2fde1c9 commit 484c8a35d20e751b79dc43032f2bd7cc61ba9f15 @leejarvis leejarvis committed Mar 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mechanize/page/image.rb
View
2 lib/mechanize/page/image.rb
@@ -162,7 +162,7 @@ def url
if page.bases[0] then
page.bases[0].href + src
else
- URI page.uri + src
+ page.uri + src
end
else
URI src

0 comments on commit 484c8a3

Please sign in to comment.