From 74b96f831a5a77f80e8dbc41c07f95d34a01c747 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 7 May 2021 09:59:47 +0100 Subject: [PATCH] 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. --- lib/secure-streams/system/auth-api.amazon.com/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/secure-streams/system/auth-api.amazon.com/auth.c b/lib/secure-streams/system/auth-api.amazon.com/auth.c index 5351cc00f..afbb72027 100644 --- a/lib/secure-streams/system/auth-api.amazon.com/auth.c +++ b/lib/secure-streams/system/auth-api.amazon.com/auth.c @@ -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);