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

+ 4 - 2
flipper_http/flipper_http.c

@@ -180,9 +180,11 @@ int32_t flipper_http_worker(void *context)
                     // Write to file if buffer is full
                     if (file_buffer_len >= FILE_BUFFER_SIZE)
                     {
-                        // remove [POST/END] and/or [GET/END] from the file
                         if (!flipper_http_append_to_file(
-                                file_buffer, file_buffer_len, false, fhttp.file_path))
+                                file_buffer,
+                                file_buffer_len,
+                                !fhttp.just_started_get && !fhttp.just_started_post,
+                                fhttp.file_path))
                         {
                             FURI_LOG_E(HTTP_TAG, "Failed to append data to file");
                         }