diff options
author | Sean McArthur <sean.monstar@gmail.com> | 2014-11-20 17:39:09 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-04 10:06:41 -0800 |
commit | 4ee8c3a60b554609b7adbd262c7543f141b09224 (patch) | |
tree | 2322fe9d4f8df709c5ebccd207e81cc67679f272 /components/net/resource_task.rs | |
parent | 1dc67f0c761debabdadbf81d195a6954812c0d1f (diff) | |
download | servo-4ee8c3a60b554609b7adbd262c7543f141b09224.tar.gz servo-4ee8c3a60b554609b7adbd262c7543f141b09224.zip |
convert script crate to use hyper
Diffstat (limited to 'components/net/resource_task.rs')
-rw-r--r-- | components/net/resource_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/resource_task.rs b/components/net/resource_task.rs index 60ad9c8578b..0c473d42676 100644 --- a/components/net/resource_task.rs +++ b/components/net/resource_task.rs @@ -221,7 +221,7 @@ impl ResourceManager { fn load(&self, load_data: LoadData) { let mut load_data = load_data; - self.user_agent.map(|ref ua| load_data.headers.set(UserAgent(ua.clone()))); + self.user_agent.as_ref().map(|ua| load_data.headers.set(UserAgent(ua.clone()))); let senders = ResponseSenders { immediate_consumer: self.sniffer_task.clone(), eventual_consumer: load_data.consumer.clone(), |