File tree 1 file changed +3
-3
lines changed
spring-web/src/main/java/org/springframework/http/server
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -195,7 +195,7 @@ public Principal getPrincipal() {
195
195
196
196
@ Override
197
197
public InetSocketAddress getLocalAddress () {
198
- return new InetSocketAddress (this .servletRequest .getLocalName (), this .servletRequest .getLocalPort ());
198
+ return new InetSocketAddress (this .servletRequest .getLocalAddr (), this .servletRequest .getLocalPort ());
199
199
}
200
200
201
201
@ Override
@@ -216,7 +216,7 @@ public InputStream getBody() throws IOException {
216
216
@ Override
217
217
public ServerHttpAsyncRequestControl getAsyncRequestControl (ServerHttpResponse response ) {
218
218
if (this .asyncRequestControl == null ) {
219
- if (!ServletServerHttpResponse . class . isInstance (response )) {
219
+ if (!(response instanceof ServletServerHttpResponse )) {
220
220
throw new IllegalArgumentException (
221
221
"Response must be a ServletServerHttpResponse: " + response .getClass ());
222
222
}
You can’t perform that action at this time.
0 commit comments