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

+ 2 - 1
flipper_http/flipper_http.c

@@ -192,12 +192,13 @@ int32_t flipper_http_worker(void *context)
                         if (!flipper_http_append_to_file(
                                 file_buffer,
                                 file_buffer_len,
-                                !fhttp.just_started_get && !fhttp.just_started_post,
+                                fhttp.just_started_bytes,
                                 fhttp.file_path))
                         {
                             FURI_LOG_E(HTTP_TAG, "Failed to append data to file");
                         }
                         file_buffer_len = 0;
+                        fhttp.just_started_bytes = false;
                     }
                 }