We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f697ec0 commit c265fdeCopy full SHA for c265fde
server/src/config.rs
@@ -280,7 +280,11 @@ pub fn build_config(opts: Opts) -> AtomicServerResult<Config> {
280
281
// This logic could be a bit too complicated, but I'm not sure on how to make this simpler.
282
let server_url = if let Some(addr) = opts.server_url.clone() {
283
- addr
+ if addr.ends_with('/') {
284
+ return Err("The Server URL should not end with a trailing slash.".into());
285
+ } else {
286
+ addr
287
+ }
288
} else if opts.https && opts.port_https == 443 || !opts.https && opts.port == 80 {
289
format!("{}://{}", schema, opts.domain)
290
} else {
0 commit comments