Skip to content

Commit

Permalink
fix(csv): head add '\n'
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Jul 13, 2024
1 parent 677aeb9 commit f5c2379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tidy-browser/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async fn write_chromium_cookies(getter: &ChromiumGetter) -> Result<()> {
.await?;
let cks = getter.get_cookies_all().await?;
let mut buf_writer = open_file(getter.browser(), "cookies").await?;
let head = b"Url,Name,Path,Value,DecryptedValue,IsSecure,IsHttponly,SourcePort,CreationUtc,ExpiresUtc,LastAccessUtc,LastUpdateUtc,HasExpires,IsPersistent";
let head = b"Url,Name,Path,Value,DecryptedValue,IsSecure,IsHttponly,SourcePort,CreationUtc,ExpiresUtc,LastAccessUtc,LastUpdateUtc,HasExpires,IsPersistent\n";
buf_writer
.write_all(head)
.await
Expand Down Expand Up @@ -167,7 +167,7 @@ async fn write_firefox_cookies(getter: &FirefoxGetter) -> Result<()> {
#[cfg(target_os = "macos")]
async fn write_safari_cookies(getter: &SafariGetter) -> Result<()> {
println!("{} cookies", getter.browser());
let head = b"Domain,Name,Path,Value,Creation,Expires,IsSecure,IsHttpOnly,Comment";
let head = b"Domain,Name,Path,Value,Creation,Expires,IsSecure,IsHttpOnly,Comment\n";
let mut buf_writer = open_file(getter.browser(), "cookies").await?;
buf_writer
.write_all(head)
Expand Down

0 comments on commit f5c2379

Please sign in to comment.