Improved error reporting.

This commit is contained in:
Simone Bordet 2016-12-30 18:54:05 +01:00
parent cb7ef89619
commit 0f422475ad
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ public class Request implements HttpServletRequest
public PushBuilder getPushBuilder()
{
if (!isPushSupported())
throw new IllegalStateException();
throw new IllegalStateException(String.format("%s,push=%b", this, isPush()));
HttpFields fields = new HttpFields(getHttpFields().size()+5);
boolean conditional=false;