Sync headers to request entity
(&self, cx: &mut Context<Self>)
| 415 | headers.push(Header::new("Content-Type", content_type)); |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | // Add auth header if applicable |
| 420 | if let Some(ref auth_editor) = self.auth_editor { |
| 421 | let config = auth_editor.read(cx).get_config(cx); |
| 422 | if let Some((key, value)) = config.to_header() { |
| 423 | if let Some(header) = headers |
| 424 | .iter_mut() |
| 425 | .find(|header| header.key.eq_ignore_ascii_case(&key)) |
no test coverage detected