mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Everywhere: Make session->content_type() callable
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
if (String.EndsWith(".css", @slon_http_request_path(session))) {
|
||||
@slon_http_set_content_type(session, "text/css");
|
||||
session->content_type("text/css");
|
||||
@slon_http_send_file(session, "M:/Slon/Static/css/main.css");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!StrICmp("/js/header.js", @slon_http_request_path(session))) {
|
||||
@slon_http_set_content_type(session, "text/javascript");
|
||||
session->content_type("text/javascript");
|
||||
@slon_http_send_file(session, "M:/Slon/Static/js/header.js");
|
||||
return;
|
||||
}
|
||||
|
||||
if (String.EndsWith(".js", @slon_http_request_path(session))) {
|
||||
@slon_http_set_content_type(session, "text/javascript");
|
||||
session->content_type("text/javascript");
|
||||
@slon_http_send_file(session, "M:/Slon/Static/js/statuses.js");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!StrICmp("/alec.png", @slon_http_request_path(session))) {
|
||||
@slon_http_set_content_type(session, "image/png");
|
||||
session->content_type("image/png");
|
||||
@slon_http_send_file(session, "A:/avatar-circle-4bpp.png");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user