aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server
diff options
context:
space:
mode:
Diffstat (limited to 'examples/http-server')
-rw-r--r--examples/http-server/http-server.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/http-server/http-server.tm b/examples/http-server/http-server.tm
index 5b73d1af..80774bff 100644
--- a/examples/http-server/http-server.tm
+++ b/examples/http-server/http-server.tm
@@ -38,7 +38,7 @@ func serve(port:Int32, handler:func(request:HTTPRequest -> HTTPResponse), num_th
response := handler(request).bytes()
C_code {
if (@response.stride != 1)
- Array$compact(&@response, 1);
+ List$compact(&@response, 1);
write(@connection, @response.data, @response.length);
close(@connection);
}