diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-16 00:09:20 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-16 00:09:20 -0400 |
commit | eaa0f581c86160a23e015baf7471201f8d4526ac (patch) | |
tree | 9e0aa6259e11f19224664efe6a8cab3b3a0f4f40 | |
parent | 37a9610d346c8ab0f3721dccab7d12ebd933294b (diff) | |
download | teleterm-eaa0f581c86160a23e015baf7471201f8d4526ac.tar.gz teleterm-eaa0f581c86160a23e015baf7471201f8d4526ac.zip |
relax the http request parsing a bit
-rw-r--r-- | src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs index 7e5a388..d42a29e 100644 --- a/src/client.rs +++ b/src/client.rs @@ -298,7 +298,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> ) -> Result<String> { lazy_static::lazy_static! { static ref RE: regex::Regex = regex::Regex::new( - r"GET (/[^ ]*) HTTP/1\.1" + r"^GET (/[^ ]*) HTTP/[0-9.]+$" ).unwrap(); } |