rack-prefer 0.2.1 → 0.3.1

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
  SHA1:
3
- metadata.gz: db5cb4b4777b2e857113d6ef19fbc7f7681795a8
4
- data.tar.gz: ef1ebc71cb61f39a960bc2b4002724b2065b1f6a
3
+ metadata.gz: 8a5ff790ed1ec0b64a34391353515eddf5aadfc5
4
+ data.tar.gz: 26f388e1e8246aac227bce1b7d2970714e79f7d5
5
5
  SHA512:
6
- metadata.gz: d48603e05ce13db22349cc603debbb8f89f10a5f2a3fd68295300fd8a5f4cdbedcb0f78b2f1723d3ab7cf0a4512234d9469bdd135560006bfaec7e8cfc401aec
7
- data.tar.gz: 12f3a992f672fd51938cf36acf5184f60a29e733afaf0b0d0602de01b8052e5a259c958775c6a3673f6981ef81d9f45d812b9bef78b33ede699a7d3dfa41e906
6
+ metadata.gz: 52cb231eac322ae7768b6fe81b940c06e26a2bdd9bcdbce114c5c07a2c1f7c94e97ee44a7e7d3c9c4558aa3dca543fb73f12d2e0abe4040a0d27f60afd1cc023
7
+ data.tar.gz: 0aca9a4d6e9a4c7a2176d714f23c29722282b5b84d67055968b6de0814e7a71330c503406964431c41993ebfb8d4e1ced5c43000c8f4e24abc1e08ec9a295d10
@@ -7,7 +7,7 @@ module Rack
7
7
 
8
8
  def initialize(req)
9
9
  @values = CGI.parse(
10
- (req.headers['HTTP_PREFER'] || '').gsub(',','&').gsub(' ','')
10
+ (req.env['HTTP_PREFER'] || '').gsub(',','&').gsub(' ','')
11
11
  )
12
12
  @values = {} if !@values.is_a?(Hash)
13
13
  @values.each{|k,v| @values[k] = v.first}
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Prefer
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-prefer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-06 00:00:00.000000000 Z
12
+ date: 2015-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler