• Tatsuhiro Tsujikawa's avatar
    nghttpx: Fix location rewrite is failed because request headers are empty · 0209b7c0
    Tatsuhiro Tsujikawa authored
    Previously we empties request headers after they are sent to
    downstream in order to free memory.  But it turns out that we use
    request headers when rewriting location header response field.  Also
    user reported that request headers are useful to add new features.
    This commits defers the deletion of request headers to the point when
    response headers are deleted (which is after response headers are sent
    to upstream client).
    0209b7c0
shrpx_http2_downstream_connection.cc 17.7 KB