 +    if (r->headers_out.content_length == NULL
 +        && r->headers_out.content_length_n >= 0)
 +    {
-+        h = ngx_array_push(out);
++        h = ngx_array_push(r->qstream->headers);
 +        if (h == NULL) {
 +            return NGX_ERROR;
 +        }

+                       "http3 output header: \"date: %V\"",
+                       &ngx_cached_http_time);
+
+        h = ngx_array_push(out);
+        if (h == NULL) {
+            return NGX_ERROR;
+        }

From 3441a3cd4576f31e245b41cd6ce16233fedb704e Mon Sep 17 00:00:00 2001
From: Alessandro Ghedini <alessandro@cloudflare.com>
Date: Thu, 22 Oct 2020 12:28:02 +0100
Subject: [PATCH] Initial QUIC and HTTP/3 implementation using quiche
