mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Everywhere: Use session->path()
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
if (String.EndsWith(".css", @slon_http_request_path(session))) {
|
||||
if (String.EndsWith(".css", session->path())) {
|
||||
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))) {
|
||||
if (!StrICmp("/js/header.js", session->path())) {
|
||||
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))) {
|
||||
if (String.EndsWith(".js", session->path())) {
|
||||
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))) {
|
||||
if (!StrICmp("/alec.png", session->path())) {
|
||||
session->content_type("image/png");
|
||||
@slon_http_send_file(session, "A:/avatar-circle-4bpp.png");
|
||||
return;
|
||||
}
|
||||
|
||||
if (String.BeginsWith("/@", @slon_http_request_path(session))) {
|
||||
if (String.BeginsWith("/@", session->path())) {
|
||||
@slon_web_user_get(session);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user