mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: Nowhere in the PUSH_PROMISE code do we explicitly check whether or not we're a client or a server, and we don't provide special handling for SETTINGS_ENABLE_PUSH contingent on that fact. As a result, we do technically allow clients to push. This eventually gets caught, but not until we've created an idle stream, which we shouldn't do. Modifications: - Forbid clients from pushing. Result: Clients won't be allowed to push. Co-authored-by: George Barnett <gbarnett@apple.com>