File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ module WEBrick
13
13
module HTTPStatus
14
14
15
15
class Status < StandardError
16
- def initialize ( message , *rest )
17
- super ( AccessLog . escape ( message ) , *rest )
16
+ def initialize ( *args )
17
+ args [ 0 ] = AccessLog . escape ( args [ 0 ] ) unless args . empty?
18
+ super ( *args )
18
19
end
19
20
class << self
20
21
attr_reader :code , :reason_phrase
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def test_bad_uri
113
113
assert_match ( %r{\A HTTP/\d .\d 400 Bad Request} , res )
114
114
s = log . call . each_line . grep ( /ERROR bad URI/ ) [ 0 ]
115
115
assert_match ( DumpPat , s )
116
- assert_not_match ( CtrlPat , s )
116
+ refute_match ( CtrlPat , s )
117
117
}
118
118
end
119
119
@@ -127,7 +127,7 @@ def test_bad_header
127
127
assert_match ( %r{\A HTTP/\d .\d 400 Bad Request} , res )
128
128
s = log . call . each_line . grep ( /ERROR bad header/ ) [ 0 ]
129
129
assert_match ( DumpPat , s )
130
- assert_not_match ( CtrlPat , s )
130
+ refute_match ( CtrlPat , s )
131
131
}
132
132
end
133
133
end
Original file line number Diff line number Diff line change 1
1
#define RUBY_VERSION "1.9.1"
2
- #define RUBY_PATCHLEVEL 377
2
+ #define RUBY_PATCHLEVEL 378
3
3
#define RUBY_VERSION_MAJOR 1
4
4
#define RUBY_VERSION_MINOR 9
5
5
#define RUBY_VERSION_TEENY 1
You can’t perform that action at this time.
0 commit comments