From 11b5933c4141d21db0f8eee07bf91bb96411f9b3 Mon Sep 17 00:00:00 2001 From: crossoverJie Date: Tue, 13 Sep 2022 19:55:25 +0800 Subject: [PATCH] fix http server --- example/http_server.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/http_server.gs b/example/http_server.gs index 4487ecb..3cf8046 100644 --- a/example/http_server.gs +++ b/example/http_server.gs @@ -40,7 +40,7 @@ httpHandle("get", "/p/1", handle1); httpHandle("get", "/p/2", handle2); string[] args = getOSArgs(); println(args); -if (args[2] != nil){ +if (len(args) == 3){ httpRun(":" + args[2]); }else { httpRun(":8000");