Skip to content

Commit e76347b

Browse files
committed
.cookies filename
1 parent b3cec50 commit e76347b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/http/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ mod error;
1818
mod reqwest_cookie_store;
1919
mod scope;
2020

21+
#[cfg(feature = "cookies")]
22+
const COOKIES_FILENAME: &str = ".cookies";
23+
2124
pub(crate) struct Http {
2225
#[cfg(feature = "cookies")]
2326
cookies_jar: crate::reqwest_cookie_store::CookieStoreMutex,
@@ -35,7 +38,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
3538
let cache_dir = app.path().app_cache_dir()?;
3639
std::fs::create_dir_all(&cache_dir)?;
3740

38-
let path = cache_dir.join("Cookies");
41+
let path = cache_dir.join(COOKIES_FILENAME);
3942
let file = File::options()
4043
.create(true)
4144
.append(true)

0 commit comments

Comments
 (0)