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:
parent
19d59f9977
commit
88c824b89d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue