mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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.
This commit is contained in:
parent
35f328d717
commit
bf8752ac9e
9 changed files with 67 additions and 67 deletions
|
@ -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(&[]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue