Change Response's statusText default value from 'Ok' to an empty string

This commit is contained in:
George Roman 2018-11-22 00:26:15 +02:00
parent 524bd722ef
commit 73f11d69ea
6 changed files with 11 additions and 12 deletions

View file

@ -131,8 +131,8 @@ impl Response {
termination_reason: None,
url: Some(url),
url_list: vec![],
status: Some((StatusCode::OK, "OK".to_string())),
raw_status: Some((200, b"OK".to_vec())),
status: Some((StatusCode::OK, "".to_string())),
raw_status: Some((200, b"".to_vec())),
headers: HeaderMap::new(),
body: Arc::new(Mutex::new(ResponseBody::Empty)),
cache_state: CacheState::None,