Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
9146943a
Commit
9146943a
authored
Apr 11, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing flush to submit headers
parent
f7953635
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
InstancesProxyController.java
...ot/admin/server/web/servlet/InstancesProxyController.java
+2
-1
AbstractInstancesProxyControllerIntegrationTest.java
.../web/AbstractInstancesProxyControllerIntegrationTest.java
+1
-1
InstancesProxyControllerIntegrationTest.java
...web/reactive/InstancesProxyControllerIntegrationTest.java
+2
-2
InstancesProxyControllerIntegrationTest.java
.../web/servlet/InstancesProxyControllerIntegrationTest.java
+2
-2
No files found.
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/servlet/InstancesProxyController.java
View file @
9146943a
...
...
@@ -67,7 +67,7 @@ public class InstancesProxyController extends AbstractInstancesProxyController {
@RequestMapping
(
path
=
REQUEST_MAPPING_PATH
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
HEAD
,
RequestMethod
.
POST
,
RequestMethod
.
PUT
,
RequestMethod
.
PATCH
,
RequestMethod
.
DELETE
,
RequestMethod
.
OPTIONS
})
public
Mono
<
Void
>
endpointProxy
(
@PathVariable
(
"instanceId"
)
String
instanceId
,
HttpServletRequest
servletRequest
,
HttpServletResponse
servletResponse
)
{
HttpServletResponse
servletResponse
)
throws
IOException
{
ServerHttpRequest
request
=
new
ServletServerHttpRequest
(
servletRequest
);
ServerHttpResponse
response
=
new
ServletServerHttpResponse
(
servletResponse
);
...
...
@@ -88,6 +88,7 @@ public class InstancesProxyController extends AbstractInstancesProxyController {
response
.
setStatusCode
(
clientResponse
.
statusCode
());
response
.
getHeaders
().
addAll
(
filterHeaders
(
clientResponse
.
headers
().
asHttpHeaders
()));
response
.
flush
();
return
clientResponse
.
body
(
BodyExtractors
.
toDataBuffers
()).
window
(
1
).
flatMap
(
body
->
{
try
{
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/AbstractInstancesProxyControllerTest.java
→
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/AbstractInstancesProxyController
Integration
Test.java
View file @
9146943a
...
...
@@ -49,7 +49,7 @@ import static de.codecentric.boot.admin.server.utils.MediaType.ACTUATOR_V2_MEDIA
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
springframework
.
http
.
HttpHeaders
.
CONTENT_TYPE
;
public
abstract
class
AbstractInstancesProxyControllerTest
{
public
abstract
class
AbstractInstancesProxyController
Integration
Test
{
private
WebTestClient
client
;
private
ConfigurableApplicationContext
context
;
private
ParameterizedTypeReference
<
Map
<
String
,
Object
>>
RESPONSE_TYPE
=
new
ParameterizedTypeReference
<
Map
<
String
,
Object
>>()
{
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/reactive/InstancesProxyControllerIntegrationTest.java
View file @
9146943a
...
...
@@ -17,13 +17,13 @@
package
de
.
codecentric
.
boot
.
admin
.
server
.
web
.
reactive
;
import
de.codecentric.boot.admin.server.AdminReactiveApplicationTest
;
import
de.codecentric.boot.admin.server.web.AbstractInstancesProxyControllerTest
;
import
de.codecentric.boot.admin.server.web.AbstractInstancesProxyController
Integration
Test
;
import
org.springframework.boot.WebApplicationType
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.context.ConfigurableApplicationContext
;
public
class
InstancesProxyControllerIntegrationTest
extends
AbstractInstancesProxyControllerTest
{
public
class
InstancesProxyControllerIntegrationTest
extends
AbstractInstancesProxyController
Integration
Test
{
@Override
protected
ConfigurableApplicationContext
setupContext
()
{
return
new
SpringApplicationBuilder
().
sources
(
AdminReactiveApplicationTest
.
TestAdminApplication
.
class
)
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/servlet/InstancesProxyControllerIntegrationTest.java
View file @
9146943a
...
...
@@ -17,13 +17,13 @@
package
de
.
codecentric
.
boot
.
admin
.
server
.
web
.
servlet
;
import
de.codecentric.boot.admin.server.AdminServletApplicationTest
;
import
de.codecentric.boot.admin.server.web.AbstractInstancesProxyControllerTest
;
import
de.codecentric.boot.admin.server.web.AbstractInstancesProxyController
Integration
Test
;
import
org.springframework.boot.WebApplicationType
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.context.ConfigurableApplicationContext
;
public
class
InstancesProxyControllerIntegrationTest
extends
AbstractInstancesProxyControllerTest
{
public
class
InstancesProxyControllerIntegrationTest
extends
AbstractInstancesProxyController
Integration
Test
{
@Override
protected
ConfigurableApplicationContext
setupContext
()
{
return
new
SpringApplicationBuilder
().
sources
(
AdminServletApplicationTest
.
TestAdminApplication
.
class
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment