aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarvin Borner2020-11-21 17:13:08 +0100
committerMarvin Borner2020-11-21 17:13:08 +0100
commit9b0fb12b247542defa3b85b0a29344b6e6d6c803 (patch)
tree76b8ab365250d483868c004dad9c2d810f0851b9 /apps
parent292dc556cbab0943b6c6c5d9ac0630cb102bbcef (diff)
Fixed TCP/HTTP serving
Diffstat (limited to 'apps')
-rw-r--r--apps/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/server.c b/apps/server.c
index 646e876..ceb5ed0 100644
--- a/apps/server.c
+++ b/apps/server.c
@@ -19,9 +19,8 @@ int main()
socket->state = S_CONNECTED;
char buf[4096] = { 0 };
net_receive(socket, buf, 4096);
- printf("%s\n", buf);
net_send(socket, strdup(RESP), strlen(RESP));
- /* net_close(socket); // TODO: Fix */
+ net_close(socket);
}
return 0;