1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

http: redirect: dont try from h2 at the moment

h1->h1, h1->h2 are OK, but h2->anything needs more work.
Just fail it early at the moment.
This commit is contained in:
Andy Green 2021-04-10 06:45:21 +01:00
parent b28b03eee1
commit 354b29c747

View file

@ -390,6 +390,11 @@ lws_h2_issue_preface(struct lws *wsi)
struct lws_h2_netconn *h2n = wsi->h2.h2n;
struct lws_h2_protocol_send *pps;
if (!h2n) {
lwsl_warn("%s: no valid h2n\n", __func__);
return 1;
}
lwsl_debug("%s: %s: fd %d\n", __func__, lws_wsi_tag(wsi), (int)wsi->desc.sockfd);
if (lws_issue_raw(wsi, (uint8_t *)preface, strlen(preface)) !=