File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 33window . cls = window . cls || { } ;
44
55cls . HTTPHeaderTokenizer = function ( )
6+ {
7+ this . _buffer = "" ;
8+ this . _current_pos = 0 ;
9+ this . _token_buffer = "" ;
10+ this . _state_handler = { } ;
11+ } ;
12+
13+ cls . HTTPHeaderTokenizerPrototype = function ( )
614{
715 var LF = "\n" ;
816 var PUNCTUATOR = ":" ;
917 var WHITESPACE_CHARS = {
1018 "\u0009" : 1 , // Tab <TAB>
11- "\u0020" : 1 , // Space <SP>
19+ "\u0020" : 1 // Space <SP>
1220 } ;
1321
14- this . _buffer = "" ;
15- this . _current_pos = 0 ;
16- this . _token_buffer = "" ;
17- this . _state_handler = { } ;
18-
1922 this . tokenize = function ( input_buffer , ontoken )
2023 {
2124 this . _state_handler = this . _state_handlers . FIRST_LINE_PART ;
@@ -98,7 +101,9 @@ cls.HTTPHeaderTokenizer = function()
98101 }
99102 return false ;
100103 } ;
101- }
104+ } ;
105+
106+ cls . HTTPHeaderTokenizer . prototype = new cls . HTTPHeaderTokenizerPrototype ( ) ;
102107
103108cls . HTTPHeaderTokenizer . types = {
104109 FIRST_LINE_PART : 1 ,
You can’t perform that action at this time.
0 commit comments