mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 15:34:09 +01:00
Better editor updating
This commit is contained in:
@@ -76,7 +76,7 @@ async fn send_request(
|
||||
headers.insert("x-foo-bar", HeaderValue::from_static("hi mom"));
|
||||
headers.insert(
|
||||
HeaderName::from_static("x-api-key"),
|
||||
HeaderValue::from_static("123-123-123"),
|
||||
HeaderValue::from_str(models::generate_id("x").as_str()).expect("Failed to create header"),
|
||||
);
|
||||
|
||||
let m = Method::from_bytes(req.method.to_uppercase().as_bytes()).unwrap();
|
||||
|
||||
@@ -306,7 +306,7 @@ pub async fn delete_all_responses(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn generate_id(prefix: &str) -> String {
|
||||
pub fn generate_id(prefix: &str) -> String {
|
||||
format!(
|
||||
"{prefix}_{}",
|
||||
Alphanumeric.sample_string(&mut rand::thread_rng(), 10)
|
||||
|
||||
Reference in New Issue
Block a user