Commit

Author:

Hash:

Timestamp:

+2 -5 +/-1 browse

Kevin Schoon [me@kevinschoon.com]

928a4911d314b08dbeb7b7ee7329e97aa788d4f4

Sun, 10 Aug 2025 13:15:17 +0000 (3 months ago)

fix hostname setting in ayllu-shell
1diff --git a/ayllu-shell/src/ui.rs b/ayllu-shell/src/ui.rs
2index abd0c51..9593096 100644
3--- a/ayllu-shell/src/ui.rs
4+++ b/ayllu-shell/src/ui.rs
5 @@ -200,10 +200,7 @@ mod menu {
6 }
7
8 pub(crate) fn select_collection(collections: &[Collection]) -> Option<&Collection> {
9- let items: Vec<Item> = collections
10- .iter()
11- .map(Item::Collection)
12- .collect();
13+ let items: Vec<Item> = collections.iter().map(Item::Collection).collect();
14 if items.is_empty() {
15 println!("No collections are configured");
16 None
17 @@ -260,7 +257,7 @@ impl Prompt<'_> {
18 let static_hosting = options.contains(&1);
19 if static_hosting {
20 let hostname = string_input!("Provide a virtual hostname");
21- let header = format!("Host: {hostname}");
22+ let header = format!("Host={hostname}");
23 let content_path = string_input_default!(
24 "Provide the path which content is served from",
25 "content"