We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b8a0b commit f300affCopy full SHA for f300aff
server/src/config.rs
@@ -303,7 +303,11 @@ pub fn build_config(opts: Opts) -> AtomicServerResult<Config> {
303
304
// This logic could be a bit too complicated, but I'm not sure on how to make this simpler.
305
let server_url = if let Some(addr) = opts.server_url.clone() {
306
- addr
+ if addr.ends_with('/') {
307
+ return Err("The Server URL should not end with a trailing slash.".into());
308
+ } else {
309
+ addr
310
+ }
311
} else if opts.https && opts.port_https == 443 || !opts.https && opts.port == 80 {
312
format!("{}://{}", schema, opts.domain)
313
} else {
0 commit comments