summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/http/response.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/http/response.go b/service/http/response.go
index 4902ee70..eb8ce32b 100644
--- a/service/http/response.go
+++ b/service/http/response.go
@@ -33,6 +33,14 @@ func NewResponse(p *roadrunner.Payload) (*Response, error) {
func (r *Response) Write(w http.ResponseWriter) error {
for n, h := range r.Headers {
for _, v := range h {
+ if n == "http2-push" {
+ if pusher, ok := w.(http.Pusher); ok {
+ pusher.Push(v, nil)
+ }
+
+ continue
+ }
+
w.Header().Add(n, v)
}
}