Merge pull request #4822 from eugenp/lor6-patch-6

Update PushController.java
This commit is contained in:
Loredana Crusoveanu 2018-07-28 22:01:42 +03:00 committed by GitHub
commit 52bcad7243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -11,9 +11,7 @@ public class PushController {
@GetMapping(path = "/demoWithPush") @GetMapping(path = "/demoWithPush")
public String demoWithPush(PushBuilder pushBuilder) { public String demoWithPush(PushBuilder pushBuilder) {
if (null != pushBuilder) { if (null != pushBuilder) {
pushBuilder.path("resources/logo.png") pushBuilder.path("resources/logo.png").push();
.addHeader("Content-Type", "image/png")
.push();
} }
return "demo"; return "demo";
} }
@ -22,4 +20,4 @@ public class PushController {
public String demoWithoutPush() { public String demoWithoutPush() {
return "demo"; return "demo";
} }
} }