Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 6e623ee

Browse files
committed
JERSEY-3154: Correct default port for Grizzly Http container.
Change-Id: I86d412b208abe738031e1c8fbbb0859cb7a2970c
1 parent 086b8a9 commit 6e623ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2010-2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2010-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -260,7 +260,7 @@ public static HttpServer createHttpServer(final URI uri,
260260

261261
final String host = (uri.getHost() == null) ? NetworkListener.DEFAULT_NETWORK_HOST : uri.getHost();
262262
final int port = (uri.getPort() == -1)
263-
? (secure ? Container.DEFAULT_HTTP_PORT : Container.DEFAULT_HTTPS_PORT)
263+
? (secure ? Container.DEFAULT_HTTPS_PORT : Container.DEFAULT_HTTP_PORT)
264264
: uri.getPort();
265265

266266
final NetworkListener listener = new NetworkListener("grizzly", host, port);

0 commit comments

Comments
 (0)