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

ss: avs: let multipart handle content-type

We added the neccessary return check on set_metadata which is good, but it
doesn't take into account that for LWA, we will normally use the multipart
stuff, that provides its own conflicting content-type.

Currently the lwa streamtype policy doesn't even provide ctype metadata
type, let's just comment it out.
This commit is contained in:
Andy Green 2021-05-07 09:59:47 +01:00
parent 9cd1f4d78b
commit 74b96f831a

View file

@ -220,8 +220,8 @@ ss_api_amazon_auth_state(void *userobj, void *sh, lws_ss_constate_t state,
switch (state) {
case LWSSSCS_CREATING:
if (lws_ss_set_metadata(m->ss, "ctype", "application/json", 16))
return LWSSSSRET_DESTROY_ME;
//if (lws_ss_set_metadata(m->ss, "ctype", "application/json", 16))
// return LWSSSSRET_DESTROY_ME;
/* fallthru */
case LWSSSCS_CONNECTING:
s = lws_system_blob_get_size(ab);