Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate Hyper and OpenSSL #15868
Update Hyper and OpenSSL #15868
Conversation
highfive
commented
Mar 8, 2017
|
Heads up! This PR modifies the following files:
|
|
@bors-servo r+ p=17 |
|
|
|
|
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
|
|
|
sfackler
commented
Mar 8, 2017
•
|
What is in |
|
Absolutely no idea. |
| @@ -18,10 +18,11 @@ use hyper::header::{Encoding, Location, Pragma, Quality, QualityItem, SetCookie, | |||
| use hyper::header::{Headers, Host, HttpDate, Referer as HyperReferer}; | |||
| use hyper::method::Method; | |||
| use hyper::mime::{Mime, SubLevel, TopLevel}; | |||
| use hyper::net::Openssl; | |||
| //use hyper::net::Openssl; | |||
This comment has been minimized.
This comment has been minimized.
| resource_group: &ResourceGroup) { | ||
| if let Some(cookie) = cookie::Cookie::new_wrapped(cookie, &request, source) { | ||
| fn set_cookie_for_url(&mut self, request: &ServoUrl, | ||
| cookie: cookie_rs::Cookie<'static>, |
This comment has been minimized.
This comment has been minimized.
| @@ -126,42 +125,62 @@ struct NetworkHttpRequestFactory { | |||
|
|
|||
| impl NetworkHttpRequestFactory { | |||
| fn create(&self, url: ServoUrl, method: Method, headers: Headers) | |||
| -> Result<HyperRequest<Fresh>, NetworkError> { | |||
| -> Result<HyperRequest<Fresh>, LoadError> { | |||
| let connection = HyperRequest::with_connector(method, | |||
| url.clone().into_url().unwrap(), | |||
| &*self.connector); | |||
|
|
|||
| if let Err(HttpError::Ssl(ref error)) = connection { | |||
| let error: &(Error + Send + 'static) = &**error; | |||
This comment has been minimized.
This comment has been minimized.
| } | ||
|
|
||
| #[derive(Debug)] | ||
| struct LoadError { |
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r- |
|
Ugh, I'll never use Reviewable again. |
|
@Ms2ger Addressed your remarks. |
|
Thanks, fine for me. |
|
@bors-servo treeclosed- |
|
|
|
r? @jdm |
|
@bors-servo try |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
|
@bors-servo: r+ |
|
|
|
@bors-servo try- retry |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
|
|
|
@bors-servo retry #14323 |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
|
|
nox commentedMar 8, 2017
•
edited by larsbergstrom
This change is