Skip to content

Commit

Permalink
update Servlet and JSP Spec Number Internally.
Browse files Browse the repository at this point in the history
Signed-off-by: gurunrao <gurunandan.rao@oracle.com>
  • Loading branch information
gurunrao committed Mar 7, 2022
1 parent bacef5b commit 361087a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2021 Contributors to Eclipse Foundation.
* Copyright (c) 1997-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997-2022 Oracle and/or its affiliates. All rights reserved.
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -22,7 +22,7 @@
public class Constants {

public static final String Package = "org.apache.catalina.core";
public static final int MAJOR_VERSION = 5;
public static final int MAJOR_VERSION = 6;
public static final int MINOR_VERSION = 0;

public static final String JSP_SERVLET_CLASS =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -372,7 +372,7 @@ public GlassfishHttpCodecFilter(
serverVersion = serverInfo != null ? serverInfo : Version.getVersion();

if (isXPoweredByEnabled) {
xPoweredBy = "Servlet/5.0 JSP/3.0"
xPoweredBy = "Servlet/6.0 JSP/3.1"
+ "(" + ((serverInfo != null && !serverInfo.isEmpty()) ? serverInfo : Version.getVersion())
+ " Java/"
+ System.getProperty("java.vm.vendor") + "/"
Expand Down

0 comments on commit 361087a

Please sign in to comment.