Skip to content

Commit

Permalink
Fix ignore_certificate_hosts and large_body_size config fields
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Oct 25, 2024
1 parent bfba735 commit b58359c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub struct Config {
/// Command to use for in-app editing. If provided, overrides
/// `VISUAL`/`EDITOR` environment variables
pub editor: Option<String>,
#[serde(flatten)]
pub http: HttpEngineConfig,
/// Should templates be rendered inline in the UI, or should we show the
/// raw text?
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ impl Default for HttpEngine {
}

#[derive(Debug, Serialize, Deserialize)]
#[serde(default)]
pub struct HttpEngineConfig {
/// TLS cert errors on these hostnames are ignored. Be careful!
pub ignore_certificate_hosts: Vec<String>,
Expand Down
1 change: 1 addition & 0 deletions docs/src/api/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ SLUMBER_CONFIG_PATH=~/dotfiles/slumber.yml slumber
| `editor` | `string` | Command to use when opening files for in-app editing. [More info](./editor.md) | `VISUAL`/`EDITOR` env vars |
| `ignore_certificate_hosts` | `string[]` | Hostnames whose TLS certificate errors will be ignored. [More info](../../troubleshooting/tls.md) | `[]` |
| `input_bindings` | `mapping[Action, KeyCombination[]]` | Override default input bindings. [More info](./input_bindings.md) | `{}` |
| `large_body_size` | `number` | Size over which request/response bodies are not formatted/highlighted, for performance (bytes) | `1000000` (1 MB) |
| `preview_templates` | `boolean` | Render template values in the TUI? If false, the raw template will be shown. | `true` |
| `theme` | [`Theme`](./theme.md) | Visual customizations | `{}` |

0 comments on commit b58359c

Please sign in to comment.