siefca-httpage 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/httpage/httpage.rb +2 -2
- metadata +1 -1
data/lib/httpage/httpage.rb
CHANGED
@@ -41,14 +41,14 @@ class HTTPage
|
|
41
41
|
# Returns page encoding.
|
42
42
|
|
43
43
|
def encoding
|
44
|
-
@
|
44
|
+
@content_type, @encoding = get_page_info if @encoding.nil?
|
45
45
|
return @encoding
|
46
46
|
end
|
47
47
|
|
48
48
|
# Returns page content-type.
|
49
49
|
|
50
50
|
def content_type
|
51
|
-
@
|
51
|
+
@content_type, @encoding = get_page_info if @content_type.nil?
|
52
52
|
return @content_type
|
53
53
|
end
|
54
54
|
|