common/src/main/java/HTTPClient/Util.java
/**
     * Does the string need to be quoted when sent in a header? I.e. does
     * it contain non-token characters?
     *
     * @param str the string
     * @return true if it needs quoting (i.e. it contains non-token chars)
     */
Does the string need to be quoted when sent in a header.

@param str the string
@return true if it needs quoting
Does the string need to be quoted when sent in a header . @param str the string @return true if it needs quoting
final static boolean needsQuoting(String str)
    {
	int len = str.length(), pos = 0;
	while (pos < len  &&  TokenChar.get(str.charAt(pos)))  pos++;
	return (pos < len);
    }
final static boolean needsQuoting ( String str ) { int len = str . length ( ) , pos = 0 ; while ( pos < len && TokenChar . get ( str . charAt ( pos ) ) ) pos ++ ; return ( pos < len ) ; }
Does the string need to be quoted when sent in a header?
Does the string need to be quoted when sent in a header?