private void replaceInternalHeaderFields(String name,String value){
  String key=name.toUpperCase();
  Vector<String> v=getHeaders(key);
  if (v == null) {
    v=new Vector<>();
    mHeaderFields.put(key,v);
  }
  if (value != null) {
    v.clear();
    v.add(value);
  }
 else {
    mHeaderFields.remove(key);
  }
}

private void replaceInternalHeaderFields ( String name , String value ) { String key = name . toUpperCase ( ) ; Vector < String > v = getHeaders ( key ) ; if ( v == null ) { v = new Vector < > ( ) ; mHeaderFields . put ( key , v ) ; } if ( value != null ) { v . clear ( ) ; v . add ( value ) ; } else { mHeaderFields . remove ( key ) ; } }
replace the header stored in internal hashtable
