Skip to content

Commit 705676e

Browse files
authored
Merge pull request #23118 from smillidge/change-servlet-spec-number
Changed Servlet Spec Number Internally
2 parents d97a927 + c01b3a7 commit 705676e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appserver/web/web-core/src/main/java/org/apache/catalina/core/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class Constants {
2222

2323
public static final String Package = "org.apache.catalina.core";
24-
public static final int MAJOR_VERSION = 4;
24+
public static final int MAJOR_VERSION = 5;
2525
public static final int MINOR_VERSION = 0;
2626

2727
public static final String JSP_SERVLET_CLASS =

nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/GlassfishNetworkListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public GlassfishHttpCodecFilter(
376376
serverVersion = serverInfo != null ? serverInfo : Version.getVersion();
377377

378378
if (isXPoweredByEnabled) {
379-
xPoweredBy = "Servlet/3.1 JSP/2.3 "
379+
xPoweredBy = "Servlet/5.0 JSP/3.0"
380380
+ "(" + ((serverInfo != null && !serverInfo.isEmpty()) ? serverInfo : Version.getVersion())
381381
+ " Java/"
382382
+ System.getProperty("java.vm.vendor") + "/"

0 commit comments

Comments
 (0)