fixed refactor uri issue

This commit is contained in:
Greg Wilkins 2014-07-23 09:03:33 +10:00
parent 467773dbdf
commit d6f841bb87
3 changed files with 6 additions and 3 deletions

View File

@ -153,7 +153,7 @@ public class Parser
catch (Throwable x)
{
LOG.debug(x);
notifyConnectionFailure(ErrorCode.PROTOCOL_ERROR, "parser_error");
notifyConnectionFailure(ErrorCode.PROTOCOL_ERROR, "parser_error: "+x);
return false;
}
}
@ -251,6 +251,7 @@ public class Parser
@Override
public void onConnectionFailure(int error, String reason)
{
LOG.warn("onConnectionFailure {},{}",error,reason);
}
}
}

View File

@ -189,9 +189,11 @@ public class HpackDecoder
break;
case ":path":
// TODO is this needed
/*
if (indexed)
field = new StaticValueHttpField(header,name,value,new HttpURI(value));
else
else*/
field = new HttpField(header,name,value);
break;

View File

@ -92,7 +92,7 @@ public class MetaDataBuilder
break;
default:
throw new IllegalArgumentException();
throw new IllegalArgumentException(field.getName());
}
}
else