Skip to content
Snippets Groups Projects
Commit 00e33392 authored by Michael Long's avatar Michael Long
Browse files

change from hardcoded 200 to http_request.status.ok

parent d167733c
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!19add tqwnet to init tickit
Pipeline #446 passed
...@@ -666,7 +666,7 @@ if(network.echolist ...@@ -666,7 +666,7 @@ if(network.echolist
break; break;
continue; continue;
} }
if(http_request.response_code == 200) { if(http_request.response_code == http_request.status.ok) {
print("Downloaded " + echolist_url + " to " + system.ctrl_dir + file.name); print("Downloaded " + echolist_url + " to " + system.ctrl_dir + file.name);
file.write(contents); file.write(contents);
file.close(); file.close();
...@@ -699,7 +699,7 @@ if(network.echolist ...@@ -699,7 +699,7 @@ if(network.echolist
break; break;
continue; continue;
} }
if(http_request.response_code == 200) { if(http_request.response_code == http_request.status.ok) {
print("Downloaded " + network.pack + " to " + system.ctrl_dir + file.name); print("Downloaded " + network.pack + " to " + system.ctrl_dir + file.name);
file.write(contents); file.write(contents);
file.close(); file.close();
......
  • Kayz @phar

    mentioned in commit cd36a63d

    ·

    mentioned in commit cd36a63d

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment