rack-canonical-header 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327b53d961290667f3ef172e3a520eecdef838b1e2823aeff10523c916703935
4
- data.tar.gz: 9b1b4bc6cfe2ab6b3651f0bf9e8e2b45e784fc4e5ffbcfc8a8648e7996b647ae
3
+ metadata.gz: 80d44ff0eb421aefb4438e1ae644a4abe2da67fda964fc950416d8a8c822b287
4
+ data.tar.gz: '089ce00e708904129a7253925bf3f8136f880957c0169e33d3def6a506e53854'
5
5
  SHA512:
6
- metadata.gz: 9d8475fbddca0a0e95e485f278a8d5f5adebd84ff367a7f500f6aa1bcf41d01f5f32c5db45ad13178b77eaa0aea1a8b132554506e0066283c94f57df14359bef
7
- data.tar.gz: 632225ba447529878b0abda0bb7aae0725f790b14c576f343c1a7483071bf5adbabfc23680fb154b47c25043d367bbfd9bded51bd7e7449e7fbc6acd5ce01536
6
+ metadata.gz: 65f8dd47b36444fdee37127743c2645b90f450100b23ea994302074de3f3331b5c50f3f72adc3045fd015d6135f5289407005f00aaf42cac169ba08d9a118296
7
+ data.tar.gz: 79119e70eca0b1e594ce50f6ceed36f3f1acaad854523a73a1e0961cc59f434826ead7579c005cd62931b5833e6ef3979080559d37d5d9357895afba7ca1d392
@@ -16,7 +16,7 @@ module Canonical
16
16
  end
17
17
 
18
18
  def self.canonical_tag(env, canonical_host)
19
- canonical = "#{env['rack.url_scheme']}://#{canonical_host}#{env['REQUEST_URI']}"
19
+ canonical = "#{env['rack.url_scheme']}://#{canonical_host}#{env['ORIGINAL_FULLPATH']}"
20
20
  "<#{canonical}>; rel=\"canonical\""
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Canonical
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-canonical-header
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Bischof
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler