@@ -258,7 +258,20 @@ export class HTTP {
258258 . otherwise ( p . error ( ERROR . INVALID_VERSION , 'Expected dot' ) ) ;
259259
260260 n ( 'res_http_minor' )
261- . select ( MINOR , this . store ( 'http_minor' , 'res_http_end' ) )
261+ . select ( MINOR , this . store ( 'http_minor' ,
262+ this . load ( 'http_major' , {
263+ 0 : this . load ( 'http_minor' , {
264+ 9 : n ( 'res_http_end' ) ,
265+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
266+ 1 : this . load ( 'http_minor' , {
267+ 0 : n ( 'res_http_end' ) ,
268+ 1 : n ( 'res_http_end' ) ,
269+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
270+ 2 : this . load ( 'http_minor' , {
271+ 0 : n ( 'res_http_end' ) ,
272+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
273+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
274+ ) )
262275 . otherwise ( p . error ( ERROR . INVALID_VERSION , 'Invalid minor version' ) ) ;
263276
264277 n ( 'res_http_end' )
@@ -364,7 +377,20 @@ export class HTTP {
364377 . otherwise ( p . error ( ERROR . INVALID_VERSION , 'Expected dot' ) ) ;
365378
366379 n ( 'req_http_minor' )
367- . select ( MINOR , this . store ( 'http_minor' , 'req_http_end' ) )
380+ . select ( MINOR , this . store ( 'http_minor' ,
381+ this . load ( 'http_major' , {
382+ 0 : this . load ( 'http_minor' , {
383+ 9 : n ( 'req_http_end' ) ,
384+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
385+ 1 : this . load ( 'http_minor' , {
386+ 0 : n ( 'req_http_end' ) ,
387+ 1 : n ( 'req_http_end' ) ,
388+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
389+ 2 : this . load ( 'http_minor' , {
390+ 0 : n ( 'req_http_end' ) ,
391+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
392+ } , p . error ( ERROR . INVALID_VERSION , 'Invalid HTTP version' ) ) ,
393+ ) )
368394 . otherwise ( p . error ( ERROR . INVALID_VERSION , 'Invalid minor version' ) ) ;
369395
370396 n ( 'req_http_end' ) . otherwise ( this . load ( 'method' , {
0 commit comments