Use tiny_http for handling login HTTP request

Our manual HTTP parsing and encoding was not working with Safari.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Max Brunsfeld
2021-06-11 10:28:00 -07:00
co-authored by Antonio Scandurra
parent 71d64a837e
commit 86ff599285
5 changed files with 88 additions and 77 deletions
+2 -1
View File
@@ -79,9 +79,10 @@ impl Background {
}
}
pub fn spawn<T>(&self, future: impl Send + Future<Output = T> + 'static) -> Task<T>
pub fn spawn<T, F>(&self, future: F) -> Task<T>
where
T: 'static + Send,
F: Send + Future<Output = T> + 'static,
{
self.executor.spawn(future)
}