Everywhere: Use session->path()
This commit is contained in:
parent
ff5a07dc04
commit
66074a5472
31 changed files with 48 additions and 48 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue