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:
parent
b28b03eee1
commit
354b29c747
1 changed files with 5 additions and 0 deletions
|
@ -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)) !=
|
||||
|
|
Loading…
Add table
Reference in a new issue