fix to allow for reverse proxying
This commit is contained in:
parent
3b81b5a959
commit
079fe1502d
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ pub fn start(address: &str, thread_count: usize, state: Arc<Mutex<State>>) -> Ve
|
|||
continue
|
||||
}
|
||||
};
|
||||
let res = match url.path() {
|
||||
let page = url.path().split("/").last().unwrap_or("");
|
||||
let res = match page {
|
||||
"/rss.xml" => {
|
||||
let guard = state.lock().unwrap();
|
||||
let header = tiny_http::Header::from_bytes(&b"Content-Type"[..], &b"text/xml"[..]).unwrap();
|
||||
|
|
Loading…
Reference in a new issue