diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index adaf5b590..a656eda4f 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -2029,8 +2029,8 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen, case LWS_H2_FRAME_TYPE_DATA: - lwsl_info("%s: LWS_H2_FRAME_TYPE_DATA: fl 0x%x\n", - __func__, h2n->flags); + // lwsl_info("%s: LWS_H2_FRAME_TYPE_DATA: fl 0x%x\n", + // __func__, h2n->flags); /* * let the network wsi live a bit longer if diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c index 0b55a37e2..eba2564dc 100644 --- a/lib/roles/h2/ops-h2.c +++ b/lib/roles/h2/ops-h2.c @@ -1172,7 +1172,7 @@ rops_alpn_negotiated_h2(struct lws *wsi, const char *alpn) ah = wsi->http.ah; - lws_role_transition(wsi, LWSIFR_SERVER, LRS_H2_AWAIT_PREFACE, + lws_role_transition(wsi, lwsi_role_client(wsi) ? LWSIFR_CLIENT : LWSIFR_SERVER, LRS_H2_AWAIT_PREFACE, &role_ops_h2); /* http2 union member has http union struct at start */