Update PushController.java

This commit is contained in:
Loredana Crusoveanu 2018-07-26 22:35:35 +03:00 committed by GitHub
parent 4ee81a2fd9
commit 729f1efd89
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")
public String demoWithPush(PushBuilder pushBuilder) {
if (null != pushBuilder) {
pushBuilder.path("resources/logo.png")
.addHeader("Content-Type", "image/png")
.push();
pushBuilder.path("resources/logo.png").push();
}
return "demo";
}