From 5cd25cc8b17e1060163206439cd63340c7cd2175 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 29 Oct 2017 06:03:51 -0700 Subject: [PATCH] fix query splitting --- src/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.rs b/src/reader.rs index c47c96908..8f0d2e83b 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -255,7 +255,7 @@ impl Reader { if let Ok(path) = percent_encoding::percent_decode(&path).decode_utf8() { let parts: Vec<&str> = path.splitn(2, '?').collect(); if parts.len() == 2 { - Some((parts[0].to_owned(), parts[1][1..].to_owned())) + Some((parts[0].to_owned(), parts[1].to_owned())) } else { Some((parts[0].to_owned(), String::new())) }