Skip to content

Commit

Permalink
Fix #10656 return value for HttpServletRequest.getProtocolRequestId()…
Browse files Browse the repository at this point in the history
… in ee10 (#10715)

Return empty string for HTTP/1.x and previous
  • Loading branch information
gregw authored Oct 16, 2023
1 parent e45814a commit 897478a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ public String getRequestId()
@Override
public String getProtocolRequestId()
{
return getRequest().getId();
return switch (getRequest().getConnectionMetaData().getHttpVersion())
{
case HTTP_2, HTTP_3 -> getRequest().getId();
default -> "";
};
}

@Override
Expand Down

0 comments on commit 897478a

Please sign in to comment.