Fix order of operations

This commit is contained in:
Tyler Benson 2019-08-27 12:06:21 -04:00
parent e74167adf2
commit 263c442bdb
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class PlayHttpServerDecorator extends HttpServerDecorator<Request, Reques
@Override
protected URI url(final Request request) throws URISyntaxException {
return new URI(request.secure() ? "https://" : "http://" + request.host() + request.uri());
return new URI((request.secure() ? "https://" : "http://") + request.host() + request.uri());
}
@Override

View File

@ -36,7 +36,7 @@ public class PlayHttpServerDecorator extends HttpServerDecorator<Request, Reques
@Override
protected URI url(final Request request) throws URISyntaxException {
return new URI(request.secure() ? "https://" : "http://" + request.host() + request.uri());
return new URI((request.secure() ? "https://" : "http://") + request.host() + request.uri());
}
@Override