diff --git a/lib/networking/http.dart b/lib/networking/http.dart index e6b3b22c5..ad15b659c 100644 --- a/lib/networking/http.dart +++ b/lib/networking/http.dart @@ -42,7 +42,7 @@ class HTTP { ); if (headers != null) { - headers.forEach((key, value) => request.headers.add); + headers.forEach((key, value) => request.headers.add(key, value)); } final response = await request.close(); @@ -87,7 +87,7 @@ class HTTP { ); if (headers != null) { - headers.forEach((key, value) => request.headers.add); + headers.forEach((key, value) => request.headers.add(key, value)); } request.write(body);