Kill Request::omit_origin_header

This commit is contained in:
Anthony Ramine 2017-04-07 11:47:57 +02:00
parent 10801caefd
commit 9394469ede
3 changed files with 6 additions and 14 deletions

View file

@ -220,7 +220,6 @@ pub struct Request {
// TODO: priority object
/// https://fetch.spec.whatwg.org/#concept-request-origin
pub origin: Origin,
pub omit_origin_header: bool,
/// https://fetch.spec.whatwg.org/#concept-request-referrer
pub referrer: Referrer,
/// https://fetch.spec.whatwg.org/#concept-request-referrer-policy
@ -273,7 +272,6 @@ impl Request {
type_: Type::None,
destination: Destination::None,
origin: origin.unwrap_or(Origin::Client),
omit_origin_header: false,
referrer: Referrer::Client,
referrer_policy: None,
pipeline_id: pipeline_id,