@@ -434,14 +434,15 @@ <h3>Processing model</h3>
434
434
435
435
< li > < p > If < var > request</ var > has a < a > Host header</ a > ,
436
436
let < var > host</ var > be the value of that header. Otherwise
437
- let < var > host</ var > be null .</ p > </ li >
437
+ let < var > host</ var > be undefined .</ p > </ li >
438
438
439
439
< li > < p > If < var > request</ var > has an < a > Origin header</ a > ,
440
440
let < var > origin</ var > be the value of that header. Otherwise
441
- let < var > origin</ var > be null .</ p > </ li >
441
+ let < var > origin</ var > be undefined .</ p > </ li >
442
442
443
443
< li > < p > If any of the following conditions hold:
444
444
< ul >
445
+ < li > < p > < var > host</ var > is undefined.</ p > </ li >
445
446
< li > < p > < var > host</ var > doesn't match the < code > Host</ code >
446
447
grammar [[RFC7230]]</ p > </ li >
447
448
< li > < p > The result of < a > host parsing</ a > the < code > uri-host</ code >
@@ -454,8 +455,8 @@ <h3>Processing model</h3>
454
455
< li > < p > The < code > port</ code > part of < var > host</ var > is not
455
456
present, and the port of the HTTP server doesn't match the
456
457
default port for the request's scheme.</ p > </ li >
457
- < li > < p > implementation wants to reject
458
- connections with < var > host</ var > as the < a > Host header</ a > .</ li > </ p >
458
+ < li > < p > The implementation wants to reject connections
459
+ with < var > host</ var > as the < a > Host header</ a > .</ li > </ p >
459
460
</ ul >
460
461
< p > Then < a > send an error</ a > with < a > error code</ a > < a > unknown
461
462
error</ a > , and jump to step 1.</ p >
@@ -466,8 +467,8 @@ <h3>Processing model</h3>
466
467
only accepting connections when the < var > host</ var > value
467
468
corresponds to a loopback interface [[RFC5735]].</ p > </ li >
468
469
469
- < li > < p > If < var > origin</ var > is not null, and is not identical to an
470
- < a > Origin header</ a > value that the implementation has been
470
+ < li > < p > If < var > origin</ var > is not undefined and is not identical to
471
+ an < a > Origin header</ a > value that the implementation has been
471
472
configured to allow, then stop running these steps and act as if the
472
473
requested service is not available.</ p >
473
474
0 commit comments