apill 2.7.0 → 2.7.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: d6a4cc84fdc111b553ab3c9012a71efb585017a0
4
- data.tar.gz: 000f98b62eeed8189c9ec9b226b95903ef716efb
3
+ metadata.gz: 19fd91487d72b0958cf639a9eaa44435a0519f20
4
+ data.tar.gz: fbd7296da9eee162e7eade29bcdb39fd91521546
5
5
  SHA512:
6
- metadata.gz: 014f89703a5ce16b2f975c002532d34263f893efae36424f1e5e91c90421f38cba1261ff3353602c9adafe8777c4a1a4e76213a4580fbd9803b805a93ca78921
7
- data.tar.gz: 566c318db6dcb58d044a2b314a3b157bee49684607727e0d00a4e237be3a999ee103644c8bb734bc73f5448ab1c0d0c1fa100363b1746ce699fd7d96997a8446
6
+ metadata.gz: 892892befdf4a720ca7fedbb59b1934607eb0aa2408d577d68eb60f2eead7bf32554852d66074b2a40e5056c965db1910bc34f826e85c0b29c7a4605b9402261
7
+ data.tar.gz: 8aff948b17818e441c8163bef2d4d3eeb9116b8041099a9e538a6465817bc71cf8d0062d431a6fba23ba539a788bb1e2d1e5a07fd508fa9872c6a3e41f514ad7
@@ -30,7 +30,7 @@ class RackRequest < Base
30
30
  private
31
31
 
32
32
  def raw_accept_header_from_params
33
- request['QUERY_STRING'][ACCEPT_PARAM_PATTERN, 1]
33
+ URI.unescape(request['QUERY_STRING'][ACCEPT_PARAM_PATTERN, 1] || '')
34
34
  end
35
35
  end
36
36
  end
data/lib/apill/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Apill
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.1'
3
3
  end
@@ -39,6 +39,19 @@ describe RackRequest do
39
39
  expect(request.accept_header.to_s).to eql 'application/vnd.matrix+zion;version=10.0'
40
40
  end
41
41
 
42
+ # rubocop:disable Metrics/LineLength
43
+ it 'finds the accept header from the query string if it is encoded' do
44
+ raw_request = {
45
+ 'HTTP_ACCEPT' => '',
46
+ 'QUERY_STRING' => 'accept=application%2Fvnd.matrix%2Bzion%3Bversion%3D10.0',
47
+ 'HTTP_X_APPLICATION_NAME' => 'matrix',
48
+ }
49
+ request = RackRequest.new(raw_request)
50
+
51
+ expect(request.accept_header.to_s).to eql 'application/vnd.matrix+zion;version=10.0'
52
+ end
53
+ # rubocop:enable Metrics/LineLength
54
+
42
55
  it 'defaults to the application name in the configuration if none is found in ' \
43
56
  'the header' do
44
57
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apill
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: human_error