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 17ef679 commit 6cee307Copy full SHA for 6cee307
server/src/config.rs
@@ -298,7 +298,11 @@ pub fn build_config(opts: Opts) -> AtomicServerResult<Config> {
298
299
// This logic could be a bit too complicated, but I'm not sure on how to make this simpler.
300
let server_url = if let Some(addr) = opts.server_url.clone() {
301
- addr
+ if addr.ends_with('/') {
302
+ return Err("The Server URL should not end with a trailing slash.".into());
303
+ } else {
304
+ addr
305
+ }
306
} else if opts.https && opts.port_https == 443 || !opts.https && opts.port == 80 {
307
format!("{}://{}", schema, opts.domain)
308
} else {
0 commit comments