bors-servo
7d95fb8e49
Auto merge of #17749 - SergeevPavel:extra-space-check, r=jdm
...
Extra space check
<!-- Please describe your changes on the following line: -->
Add tidy check for keywords with more than one space afterwards.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #17700 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- 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/17749 )
<!-- Reviewable:end -->
2017-07-19 16:03:51 -07:00
Pavel Sergeev
677a24a8d6
remove extra spaces after keywords
2017-07-20 00:45:02 +03:00
Fausto Núñez Alberro
6032940fb8
Change RequestInit origin type to ImmutableOrigin
2017-07-16 21:44:33 +02:00
Josh Matthews
6f590a87bf
Move hosts module into net crate. Remove obsolete functions.
2017-04-06 19:25:47 +09:00
Anthony Ramine
64ba597a3a
Move Arc out of HttpState
2017-04-03 14:00:36 +02:00
Anthony Ramine
7b16021a89
Make Response::url_list be a bare Vec<ServoUrl>
2017-04-03 12:47:28 +02:00
Anthony Ramine
cb2eb81208
Remove all internal mutability from Request
2017-04-03 12:39:07 +02:00
Anthony Ramine
f42a63baea
Make fetch take a &Request
2017-04-03 12:33:43 +02:00
ddh
e527c9a991
Update Hyper and OpenSSL
2017-03-31 16:32:21 +02:00
Matt Brubeck
8f65463ffa
Upgrade dependencies with minor updates
2017-03-17 07:38:27 -07:00
bors-servo
a11a3fe68b
Auto merge of #15903 - servo:set-origin-header, r=Wafflespeanut
...
Set Origin header in http_network_or_cache_fetch
<!-- 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/15903 )
<!-- Reviewable:end -->
2017-03-09 22:15:11 -08:00
rabisg
de2b9b7707
Fixes #14787 : Set Origin header in http_network_or_cache_fetch
...
Sets Origin header on request with CORS flag set or on requests other
than those with GET/HEAD methods
2017-03-10 11:44:21 +05:30
Ms2ger
c1e8beacdc
Remove unused content-blocker dependency from unit tests.
2017-03-09 10:29:34 +01:00
Ms2ger
5a61d8b2ea
Remove unused content blocker code.
...
I don't know what it is for, so I believe it would be better to remove it
entirely until and unless we start using it.
2017-03-07 10:29:27 +01:00
Matt Brubeck
f6e7179e9a
Fix an unused variable warning in net_tests
2016-12-30 17:24:10 -08:00
Keith Yeung
16f1947e24
Add unit tests
2016-12-22 11:29:30 -08:00
Ms2ger
a5efc01b5f
Use the asynchronous fetching code in unit tests.
...
This is the only code that is used in Servo proper, so it's a more useful
thing to test.
2016-12-15 10:45:15 +01:00
Ms2ger
9d9f048b3b
Introduce fetch_with_context() to reduce repetition.
2016-12-15 10:25:58 +01:00
Ms2ger
2dc73d8789
Rewrite test_redirect_from_x_to_x_provides_x_with_cookie_from_first_response.
2016-11-23 22:35:33 +01:00
Ms2ger
f4f125852a
Remove references to https from http_loader unit tests.
2016-11-23 22:34:39 +01:00
Ms2ger
adc78c7cbe
Remove a test for view-source.
...
This scheme is not currently supported in fetch (#14308 ).
2016-11-23 22:34:38 +01:00
Ms2ger
621ca6190a
Translate a test for ftp URLs to fetch.
2016-11-23 22:34:36 +01:00
Ms2ger
ce89fcf335
Rewrite test_cookies_blocked.
2016-11-23 22:34:33 +01:00
Ms2ger
2fa032109f
Rewrite test_content_blocked.
2016-11-23 22:34:32 +01:00
Ms2ger
b4178c7eaf
Split test_content_blocked for readability.
2016-11-23 22:34:31 +01:00
Ms2ger
3da075ca73
Remove test for CustomResponseMediator.
...
The fetch stack does not yet support this at all (#14306 ).
2016-11-23 22:34:30 +01:00
Ms2ger
64d176d851
Remove referrer policy unit tests.
...
This code should be covered sufficiently by wpt tests.
2016-11-23 22:34:28 +01:00
Ms2ger
a8f7f3c1db
Rewrite test_auth_ui_needs_www_auth.
2016-11-23 22:34:27 +01:00
Ms2ger
4c34e9aa89
Remove test_auth_ui_sets_header_on_401.
...
The fetch stack does not yet support asking the user for credentials (#14305 ).
2016-11-23 22:34:26 +01:00
Ms2ger
9f23949628
Rewrite test_if_auth_creds_not_in_url_but_in_cache_it_sets_it.
2016-11-23 22:34:25 +01:00
Ms2ger
27d90fb6a8
Rewrite test_load_follows_a_redirect.
2016-11-23 22:34:20 +01:00
Ms2ger
04ffeea3c5
Rewrite test_redirect_from_x_to_y_provides_y_cookies_from_y.
2016-11-23 17:51:04 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Ms2ger
56dd6417e6
Remove the network.http.redirection-limit preference.
...
The Fetch standard defines this value as twenty; there is no good reason to
allow changing that at runtime.
2016-11-14 14:44:08 +01:00
Ms2ger
65602de403
Add a successful test for a redirect loop.
2016-11-10 13:13:31 +01:00
Ms2ger
581c6dfe1b
Rewrite test_load_errors_when_there_a_redirect_loop.
2016-11-10 12:57:19 +01:00
Ms2ger
bced313c47
Rewrite test_load_sets_default_accept_encoding_to_gzip_and_deflate.
2016-11-10 11:34:48 +01:00
Ms2ger
195774436b
Rewrite test_load_uses_explicit_accept_encoding_from_load_data_headers.
2016-11-10 11:32:31 +01:00
Ms2ger
e12a6d7f4e
Rewrite test_load_sets_default_accept_to_html_xhtml_xml_and_then_anything_else.
2016-11-10 11:26:54 +01:00
Ms2ger
6319d7cb99
Rewrite test_load_uses_explicit_accept_from_headers_in_load_data.
2016-11-10 11:22:23 +01:00
Ms2ger
5a02586341
Rewrite test_load_sets_content_length_to_length_of_request_body.
2016-11-10 11:18:22 +01:00
Ms2ger
c229a0116e
Rewrite test_when_cookie_received_marked_secure_is_ignored_for_http.
2016-11-10 11:06:23 +01:00
Ms2ger
982c59662c
Rewrite test_cookie_set_with_httponly_should_not_be_available_using_getcookiesforurl.
2016-11-10 11:06:22 +01:00
Ms2ger
52258e2282
Rewrite test_load_sends_cookie_if_nonhttp.
2016-11-10 11:01:08 +01:00
Ms2ger
f1f090ca81
Rewrite test_load_sets_requests_cookies_header_for_url_by_getting_cookies_from_the_resource_manager.
2016-11-10 11:01:07 +01:00
Ms2ger
5bf90c563c
Rewrite test_load_sets_cookies_in_the_resource_manager_when_it_get_set_cookie_header_in_response.
2016-11-10 11:01:05 +01:00
bors-servo
89c46369a2
Auto merge of #14151 - servo:assert_cookie_for_domain, r=jdm
...
Clarify assert_cookie_for_domain.
<!-- 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/14151 )
<!-- Reviewable:end -->
2016-11-10 02:29:44 -06:00
Ms2ger
2744227e13
Rewrite test_load_doesnt_add_host_to_sts_list_when_url_is_http_even_if_sts_headers_are_present.
2016-11-09 17:51:17 +01:00
Ms2ger
f03a6001de
Rewrite test_load_doesnt_send_request_body_on_any_redirect.
...
Note that it is necessary to use POST here; using GET will cause an error in
hyper, which enforces the rule that GET requests don't have a body.
2016-11-09 17:51:15 +01:00
Ms2ger
ba86d8576d
Rewrite test_load_should_decode_the_response_as_gzip_when_response_headers_have_content_encoding_gzip.
2016-11-09 17:51:13 +01:00