Auto merge of #14127 - servo:response-new-url, r=nox

Make Response::url private.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14127)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-11-10 09:19:52 -06:00 committed by GitHub
commit d8a0a00032
3 changed files with 14 additions and 18 deletions

View file

@ -383,8 +383,8 @@ fn test_fetch_response_is_opaque_filtered() {
assert!(!fetch_response.is_network_error());
assert_eq!(fetch_response.response_type, ResponseType::Opaque);
assert!(fetch_response.url().is_none());
assert!(fetch_response.url_list.into_inner().len() == 0);
assert!(fetch_response.url.is_none());
// this also asserts that status message is "the empty byte sequence"
assert!(fetch_response.status.is_none());
assert_eq!(fetch_response.headers, Headers::new());