Update PushController.java
This commit is contained in:
parent
4ee81a2fd9
commit
729f1efd89
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue