mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ss: skip null metadata
This commit is contained in:
parent
cab63090e6
commit
0f98972ab5
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,8 @@ lws_apply_metadata(lws_ss_handle_t *h, struct lws *wsi, uint8_t *buf,
|
|||
/* has to have a non-empty header string */
|
||||
|
||||
if (polmd->value__may_own_heap &&
|
||||
((uint8_t *)polmd->value__may_own_heap)[0]) {
|
||||
((uint8_t *)polmd->value__may_own_heap)[0] &&
|
||||
h->metadata[m].value__may_own_heap) {
|
||||
if (lws_add_http_header_by_name(wsi,
|
||||
polmd->value__may_own_heap,
|
||||
h->metadata[m].value__may_own_heap,
|
||||
|
|
Loading…
Add table
Reference in a new issue