PR #35050 (ProtocolException thrown on slightly broken headers) Contributed by Oleg Kalnichevski Reviewed by Michael Becke