This commit is contained in:
agra
2026-02-18 16:31:06 +02:00
parent 57cb01c3ec
commit 383f09a305
2 changed files with 3 additions and 2 deletions

View File

@@ -68,8 +68,8 @@ handle :: (client: s32) {
buf : [4096]u8 = ---;
read(client, buf, buf.len);
body := "<html><body><h1>Hello from sx!</h1></body></html>";
response := format("HTTP/1.1 200 OK\r
body :: "<html><body><h1>Hello from sx!</h1></body></html>";
response :: format("HTTP/1.1 200 OK\r
Content-Type: text/html\r
Connection: close\r
Content-Length: {}\r

View File

@@ -366,6 +366,7 @@ build_format :: (fmt: string) -> string {
format :: ($fmt: string, args: ..Any) -> string {
#insert build_format(fmt);
#insert "result;";
}
print :: ($fmt: string, args: ..Any) {