File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-web/src/main/java/org/springframework/http/server Expand file tree Collapse file tree 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.
@@ -181,7 +181,7 @@ public Principal getPrincipal() {
181
181
182
182
@ Override
183
183
public InetSocketAddress getLocalAddress () {
184
- return new InetSocketAddress (this .servletRequest .getLocalName (), this .servletRequest .getLocalPort ());
184
+ return new InetSocketAddress (this .servletRequest .getLocalAddr (), this .servletRequest .getLocalPort ());
185
185
}
186
186
187
187
@ Override
@@ -202,7 +202,7 @@ public InputStream getBody() throws IOException {
202
202
@ Override
203
203
public ServerHttpAsyncRequestControl getAsyncRequestControl (ServerHttpResponse response ) {
204
204
if (this .asyncRequestControl == null ) {
205
- if (!ServletServerHttpResponse . class . isInstance (response )) {
205
+ if (!(response instanceof ServletServerHttpResponse )) {
206
206
throw new IllegalArgumentException (
207
207
"Response must be a ServletServerHttpResponse: " + response .getClass ());
208
208
}
You can’t perform that action at this time.
0 commit comments