This commit is contained in:
Andras Schmelczer 2025-11-16 21:32:28 +00:00
parent 3818da288a
commit c37cb3df83
2 changed files with 2 additions and 3 deletions

View file

@ -348,7 +348,7 @@ export class SyncService {
}
private getDefaultHeaders(
{ type }: { type?: "json" | "form" } = { type: undefined }
{ type }: { type?: "json" } = { type: undefined }
): Record<string, string> {
const headers: Record<string, string> = {
"device-id": this.deviceId,
@ -357,8 +357,6 @@ export class SyncService {
if (type === "json") {
headers["Content-Type"] = "application/json";
} else if (type === "form") {
headers["Content-Type"] = "multipart/form-data";
}
return headers;

View file

@ -350,6 +350,7 @@ mod tests {
#[test]
fn test_restart_behavior() {
let temp_dir = std::env::temp_dir().join("test_restart_behavior");
let _ = fs::remove_dir_all(&temp_dir);
// Create initial writer and write some data
{