aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/response.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-11-09 18:30:30 -0500
committerCorey Farwell <coreyf@rwell.org>2016-11-09 18:30:30 -0500
commitbf8752ac9ed6f22c799557bed01655eebdd1c4e9 (patch)
tree6cd89497bca987bda7ffff10ae7f4a00e2338837 /components/net_traits/response.rs
parent35f328d7174c93bb6ef5913a206496779fb8d3bf (diff)
downloadservo-bf8752ac9ed6f22c799557bed01655eebdd1c4e9.tar.gz
servo-bf8752ac9ed6f22c799557bed01655eebdd1c4e9.zip
Update CORS naming from 'CORS' to 'Cors'.
As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
Diffstat (limited to 'components/net_traits/response.rs')
-rw-r--r--components/net_traits/response.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net_traits/response.rs b/components/net_traits/response.rs
index 92eee0e4669..f6165fa641c 100644
--- a/components/net_traits/response.rs
+++ b/components/net_traits/response.rs
@@ -17,7 +17,7 @@ use url::Url;
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize, HeapSizeOf)]
pub enum ResponseType {
Basic,
- CORS,
+ Cors,
Default,
Error(NetworkError),
Opaque,
@@ -198,7 +198,7 @@ impl Response {
response.headers = headers;
},
- ResponseType::CORS => {
+ ResponseType::Cors => {
let access = old_headers.get::<AccessControlExposeHeaders>();
let allowed_headers = access.as_ref().map(|v| &v[..]).unwrap_or(&[]);