Merge pull request #4822 from eugenp/lor6-patch-6
Update PushController.java
This commit is contained in:
		
						commit
						52bcad7243
					
				| @ -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"; | ||||
|     } | ||||
| @ -22,4 +20,4 @@ public class PushController { | ||||
|     public String demoWithoutPush() { | ||||
|         return "demo"; | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user