unicorn 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.olddoc.yml +3 -3
- data/Documentation/unicorn.1.txt +2 -2
- data/Documentation/unicorn_rails.1.txt +2 -2
- data/FAQ +1 -1
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +3 -3
- data/HACKING +1 -1
- data/ISSUES +6 -6
- data/KNOWN_ISSUES +2 -2
- data/Links +2 -2
- data/README +2 -2
- data/SIGNALS +1 -1
- data/Sandbox +3 -2
- data/TODO +0 -2
- data/examples/big_app_gc.rb +1 -1
- data/examples/init.sh +36 -8
- data/examples/logrotate.conf +16 -1
- data/examples/nginx.conf +1 -1
- data/examples/unicorn.conf.minimal.rb +2 -2
- data/examples/unicorn.conf.rb +2 -2
- data/examples/unicorn@.service +5 -0
- data/ext/unicorn_http/unicorn_http.c +641 -342
- data/ext/unicorn_http/unicorn_http_common.rl +1 -1
- data/lib/unicorn/configurator.rb +3 -3
- data/lib/unicorn/http_server.rb +1 -1
- data/lib/unicorn/oob_gc.rb +3 -2
- data/lib/unicorn/version.rb +1 -1
- data/man/man1/unicorn.1 +54 -53
- data/man/man1/unicorn_rails.1 +47 -45
- data/test/unit/test_http_parser.rb +18 -0
- data/unicorn_1 +1 -0
- data/unicorn_rails_1 +1 -0
- metadata +8 -4
@@ -230,6 +230,24 @@ def test_nasty_pound_header
|
|
230
230
|
assert_equal expect, req['HTTP_X_SSL_BULLSHIT']
|
231
231
|
end
|
232
232
|
|
233
|
+
def test_multiline_header_0d0a
|
234
|
+
parser = HttpParser.new
|
235
|
+
parser.buf << "GET / HTTP/1.0\r\n" \
|
236
|
+
"X-Multiline-Header: foo bar\r\n\tcha cha\r\n\tzha zha\r\n\r\n"
|
237
|
+
req = parser.env
|
238
|
+
assert_equal req, parser.parse
|
239
|
+
assert_equal 'foo bar cha cha zha zha', req['HTTP_X_MULTILINE_HEADER']
|
240
|
+
end
|
241
|
+
|
242
|
+
def test_multiline_header_0a
|
243
|
+
parser = HttpParser.new
|
244
|
+
parser.buf << "GET / HTTP/1.0\n" \
|
245
|
+
"X-Multiline-Header: foo bar\n\tcha cha\n\tzha zha\n\n"
|
246
|
+
req = parser.env
|
247
|
+
assert_equal req, parser.parse
|
248
|
+
assert_equal 'foo bar cha cha zha zha', req['HTTP_X_MULTILINE_HEADER']
|
249
|
+
end
|
250
|
+
|
233
251
|
def test_continuation_eats_leading_spaces
|
234
252
|
parser = HttpParser.new
|
235
253
|
header = "GET / HTTP/1.1\r\n" \
|
data/unicorn_1
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
olddoc_placeholder
|
data/unicorn_rails_1
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
olddoc_placeholder
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unicorn hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -115,6 +115,8 @@ extra_rdoc_files:
|
|
115
115
|
- lib/unicorn/util.rb
|
116
116
|
- lib/unicorn/oob_gc.rb
|
117
117
|
- lib/unicorn/worker.rb
|
118
|
+
- unicorn_1
|
119
|
+
- unicorn_rails_1
|
118
120
|
- ISSUES
|
119
121
|
- Sandbox
|
120
122
|
- Links
|
@@ -276,7 +278,9 @@ files:
|
|
276
278
|
- test/unit/test_upload.rb
|
277
279
|
- test/unit/test_util.rb
|
278
280
|
- unicorn.gemspec
|
279
|
-
|
281
|
+
- unicorn_1
|
282
|
+
- unicorn_rails_1
|
283
|
+
homepage: https://bogomips.org/unicorn/
|
280
284
|
licenses:
|
281
285
|
- GPL-2.0+
|
282
286
|
- Ruby-1.8
|
@@ -297,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
301
|
version: '0'
|
298
302
|
requirements: []
|
299
303
|
rubyforge_project:
|
300
|
-
rubygems_version: 2.6.
|
304
|
+
rubygems_version: 2.6.7
|
301
305
|
signing_key:
|
302
306
|
specification_version: 4
|
303
307
|
summary: Rack HTTP server for fast clients and Unix
|