Skip to content

Commit 5a04516

Browse files
authored
Merge pull request #268 from prometheus/sinjo-lowercase-example-headers
Use lowercase response headers in Rack example
2 parents ea01d97 + c78dbb0 commit 5a04516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rack/config.ru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ srand
1111
app = lambda do |_|
1212
case rand
1313
when 0..0.8
14-
[200, { 'Content-Type' => 'text/html' }, ['OK']]
14+
[200, { 'content-type' => 'text/html' }, ['OK']]
1515
when 0.8..0.95
16-
[404, { 'Content-Type' => 'text/html' }, ['Not Found']]
16+
[404, { 'content-type' => 'text/html' }, ['Not Found']]
1717
else
1818
raise NoMethodError, 'It is a bug!'
1919
end

0 commit comments

Comments
 (0)