According to which spec? RFC 7230 allows optional whitespace (OWS) after the colon, but not before it:
header-field = field-name ":" OWS field-value OWS
According to which spec? RFC 7230 allows optional whitespace (OWS) after the colon, but not before it: