rack-canonical-host 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/README.md +18 -4
- data/lib/rack/canonical_host/redirect.rb +1 -1
- data/lib/rack/canonical_host/version.rb +1 -1
- data/spec/rack/canonical_host_spec.rb +8 -0
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -89,14 +89,28 @@ end
|
|
89
89
|
```
|
90
90
|
|
91
91
|
|
92
|
+
## Contributing
|
93
|
+
|
94
|
+
1. Fork it
|
95
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
96
|
+
3. Commit your changes (`git commit -am 'Add some feature.'`)
|
97
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
98
|
+
5. Create a new Pull Request
|
99
|
+
|
100
|
+
|
92
101
|
## Contributors
|
93
102
|
|
94
103
|
Thanks to the following people who have contributed patches or helpful
|
95
104
|
suggestions:
|
96
105
|
|
97
|
-
* [Peter Baker](
|
98
|
-
* [Jon Wood](
|
99
|
-
* [Nathaniel Bibler](
|
100
|
-
* [Eric Allam](
|
106
|
+
* [Peter Baker](https://github.com/finack)
|
107
|
+
* [Jon Wood](https://github.com/jellybob)
|
108
|
+
* [Nathaniel Bibler](https://github.com/nbibler)
|
109
|
+
* [Eric Allam](https://github.com/rubymaverick)
|
110
|
+
* [Fabrizio Regini](https://github.com/freegenie)
|
111
|
+
|
101
112
|
|
113
|
+
## Copyright
|
102
114
|
|
115
|
+
Copyright © 2009-2012 Tyler Hunt.
|
116
|
+
Released under the terms of the MIT license. See LICENSE for details.
|
@@ -58,6 +58,14 @@ describe Rack::CanonicalHost do
|
|
58
58
|
let(:app) { build_app('example.com') }
|
59
59
|
|
60
60
|
include_context 'matching and non-matching requests'
|
61
|
+
|
62
|
+
context 'when the request has a pipe in the URL' do
|
63
|
+
let(:url) { 'https://example.com/full/path?value=withPIPE' }
|
64
|
+
|
65
|
+
before { env['QUERY_STRING'].sub!('PIPE', '|') }
|
66
|
+
|
67
|
+
it { expect { subject }.to_not raise_error }
|
68
|
+
end
|
61
69
|
end
|
62
70
|
|
63
71
|
context 'with :ignore option' do
|