aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-07-24 23:24:21 +0200
committerGitHub <noreply@github.com>2023-07-24 23:24:21 +0200
commit111bde405984d6a1b5eae4edd521e94010621079 (patch)
tree37948fc7e67b3a1bc5da306c3666e8f66e2a7318 /src
parent6b8ed635d34b3a48c5a5e5712eaaaa760f9f3240 (diff)
parent236283ed722bc08f1a1e81b66419f095194976f3 (diff)
Merge pull request #218 from ryuukk/patch-6
Copy collection's key from new config
Diffstat (limited to 'src')
-rw-r--r--src/server/requests.odin12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin
index 22cba7a..7193b9b 100644
--- a/src/server/requests.odin
+++ b/src/server/requests.odin
@@ -437,24 +437,18 @@ read_ols_initialize_options :: proc(
config.enable_fake_method =
ols_config.enable_fake_methods.(bool) or_else config.enable_fake_method
- // copy collections from new config
+ // copy collections from new config
when ODIN_OS == .Windows {
for it in ols_config.collections {
forward, _ := filepath.to_slash(
common.get_case_sensitive_path(it.path),
context.temp_allocator,
)
- config.collections[it.name] = strings.clone(
- forward,
- context.allocator,
- )
+ config.collections[strings.clone(it.name, context.allocator)] = strings.clone(forward, context.allocator)
}
} else {
for it in ols_config.collections {
- config.collections[it.name] = strings.clone(
- it.path,
- context.allocator,
- )
+ config.collections[strings.clone(it.name, context.allocator)] = strings.clone(it.path, context.allocator)
}
}