OpenShift default error page does not conform to RFC 2616 / RFC 7230
Issue
- The default 503 error page in Openshifts HAproxy template contains linebreaks in the
LF
format, whereas the RFC 2616 and RFC 7230 both demand forCRLF
line breaks to be used. -
The default OpenShift HTTP 503 error page contains
LF
instead ofCRLF
in the files (Note:CR
is0x0d
,LF
is0x0a
, soCRLF
is0x0d0a
)$ cat error-page-503.http | xxd | head -n3 00000000: 4854 5450 2f31 2e30 2035 3033 2053 6572 HTTP/1.0 503 Ser 00000010: 7669 6365 2055 6e61 7661 696c 6162 6c65 vice Unavailable 00000020: 0a50 7261 676d 613a 206e 6f2d 6361 6368 .Pragma: no-cach
Environment
- Red Hat OpenShift Container Platform (OCP) 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.