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