Commit 3790e14b authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

check for correct code in adminblco

parent 0a1c70c3
...@@ -185,11 +185,11 @@ class AdminsBloc extends Bloc<AdminsEvent, AdminsState> { ...@@ -185,11 +185,11 @@ class AdminsBloc extends Bloc<AdminsEvent, AdminsState> {
) )
.then((http.Response response) { .then((http.Response response) {
_log.finer(formatResponse(response)); _log.finer(formatResponse(response));
if (response.statusCode == 204) { if (response.statusCode == 205) {
return; return;
} else { } else {
_log.severe(response.body); _log.severe(response.body);
throw NetworkException('status code other than 204 received', response.statusCode); throw NetworkException('status code other than 205 received', response.statusCode);
} }
}); });
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment