url_canonicalize 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/url_canonicalize/request.rb +1 -1
- data/lib/url_canonicalize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64cf70fdd7f0e97ae3ebdc4b2574c9fd7c4d30bd
|
4
|
+
data.tar.gz: f67c306acbfef65af2dbf884fe9ea0fc8219e167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d9afc04d8050eb1e3cdb43a9fa34953cc2feab0546ad09dc6ec235e058090edbcd46e741a46fca87e0621137f7671bcaf89f19eca8d0b0e2f34e525cde5e25e
|
7
|
+
data.tar.gz: 0ee4ab39a5d43fa2a69a8e5ce35b425dcc7a6861ed46899ac0026b5e14cc928c7b4410d3f6212168b377d9b100a662c4c5a63eabb5c1ed7528bf530fdf5363e2
|
@@ -60,7 +60,7 @@ module URLCanonicalize
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def handle_success
|
63
|
-
@canonical_url = $LAST_MATCH_INFO['url'] if
|
63
|
+
@canonical_url = $LAST_MATCH_INFO['url'] if /<(?<url>.+)>\s*;\s*rel="canonical"/i =~ (response['link'] || '')
|
64
64
|
|
65
65
|
if http_method == :head
|
66
66
|
self.http_method = :get
|