Return empty string for HTTP/1.x and previous
This commit is contained in:
parent
e45814a49a
commit
897478a4f6
|
@ -187,7 +187,11 @@ public class ServletApiRequest implements HttpServletRequest
|
|||
@Override
|
||||
public String getProtocolRequestId()
|
||||
{
|
||||
return getRequest().getId();
|
||||
return switch (getRequest().getConnectionMetaData().getHttpVersion())
|
||||
{
|
||||
case HTTP_2, HTTP_3 -> getRequest().getId();
|
||||
default -> "";
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue