bug fix for content-type "text/plain" does not work well

connectionHasHeader does not suitable for get header's content-type , since that connection.rawConnection.responseHeaders is an Array but not HashMap ,so add the long context.