@ Nonnull public static String getUnifiedValue ( @ Nullable final String sValue ) { final StringBuilder aSB = new StringBuilder ( ) ; StringHelper . replaceMultipleTo ( sValue , new char [ ] { ' ' , ' ' , ' ' } , ' ' , aSB ) ; return aSB . toString ( ) ; }
Avoid having header values spanning multiple lines . This has been deprecated by RFC 7230 and Jetty 9 . 3 refuses to parse these requests with HTTP 400 by default .