siefca-httpage 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|