Skip to content

Commit

Permalink
fix http server
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Sep 13, 2022
1 parent dd6475c commit 11b5933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/http_server.gs
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit 11b5933

Please sign in to comment.