jblanked 1 год назад
Родитель
Сommit
6089cd6a7e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      draw/flip_social_draw.c

+ 2 - 1
draw/flip_social_draw.c

@@ -527,7 +527,8 @@ void flip_social_callback_draw_login(Canvas *canvas, void *model)
 
         char buffer[256];
         snprintf(buffer, sizeof(buffer), "{\"username\":\"%s\",\"password\":\"%s\"}", app_instance->login_username_logged_out, app_instance->login_password_logged_out);
-        flip_social_login_success = flipper_http_post_request_with_headers("https://www.flipsocial.net/api/user/login/", buffer, buffer);
+        auth_headers_alloc();
+        flip_social_login_success = flipper_http_post_request_with_headers("https://www.flipsocial.net/api/user/login/", auth_headers, buffer);
         if (flip_social_login_success)
         {
             fhttp.state = RECEIVING;