Update assets.c to serve RDP assets from /rdpwasm/ path

- Changed the path check in get_embedded_asset from /rdp/ to /rdpwasm/
- Rebuilt the project to include the updated asset serving logic
parent 2974fea8
- If you need to rebuild the project, use always ./build.sh --clean && ./build.sh - If you need to rebuild the project, use always ./build.sh --clean && ./build.sh
- if you need to build the debian packages, use ./build.sh --debian - if you need to build the debian packages, use ./build.sh --debian
- if a build give you any warning, fix the warning - if a build give you any warning, fix the warning
- when you finish a todo list and everything is complete, execute a git commit - when you finish a todo list and everything is complete, execute a git commit
- when i ask you to update the documentation, update the readme file, the changelog, the todo list checking if we completed anything, the man files. For the documentation always include sections for the config files, examples, verify the command line is updated.
...@@ -2,4 +2,9 @@ ...@@ -2,4 +2,9 @@
- if you need to build the debian packages, use ./build.sh --debian - if you need to build the debian packages, use ./build.sh --debian
- if a build give you any warning, fix the warning
- when you finish a todo list and everything is complete, execute a git commit - when you finish a todo list and everything is complete, execute a git commit
- when i ask you to update the documentation, update the readme file, the changelog, the todo list checking if we completed anything, the man files. For the documentation always include sections for the config files, examples, verify the command line is updated.
...@@ -78,7 +78,7 @@ const char *get_embedded_asset(const char *path, size_t *size) { ...@@ -78,7 +78,7 @@ const char *get_embedded_asset(const char *path, size_t *size) {
const char *content = get_novnc_asset(path); const char *content = get_novnc_asset(path);
if (content && size) *size = strlen(content); if (content && size) *size = strlen(content);
return content; return content;
} else if (strncmp(path, "/rdp/", 5) == 0) { } else if (strncmp(path, "/rdpwasm/", 9) == 0) {
const char *content = get_rdp_asset(path, size); const char *content = get_rdp_asset(path, size);
return content; return content;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment