diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-04-17 20:16:05 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-04-17 20:16:05 +0200 |
| commit | 81c84f9683a40d60c0d1ae347c175d9205d186f8 (patch) | |
| tree | 20ebf3866421379ee7b80bf6b3be5355f986757c /src/server | |
| parent | 7078938f6d5dcc42c4216da2cf37bd486fd57818 (diff) | |
Handle forward slash for windows after filepath.abs
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/requests.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index 9a41d4b..330fd14 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -550,7 +550,12 @@ read_ols_initialize_options :: proc( } if abs_final_path, ok := filepath.abs(final_path); ok { - config.collections[strings.clone(it.name)] = abs_final_path + slashed_path, _ := filepath.to_slash( + abs_final_path, + context.temp_allocator, + ) + + config.collections[strings.clone(it.name)] = strings.clone(slashed_path) } else { log.errorf( "Failed to find absolute address of collection: %v", |