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