Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Apr 15, 2024
1 parent e522838 commit 6920d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/httphandler.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use native_tls::TlsConnector;
use std::io::Cursor;
use std::sync::Arc;
use ureq::{Agent, AgentBuilder};

use native_tls::TlsConnector;
use ureq::AgentBuilder;

pub struct HttpHandler {
pub url: String,
Expand Down Expand Up @@ -31,6 +32,7 @@ impl HttpHandler {
.post(&self.url)
.set("content-type", "text/plain")
.set("title", title.as_str())
.set("reportbook", "true")
.send(Cursor::new(self.lines.join("\n")))
.unwrap()
.into_string()
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Reports will be uploaded to a pastebin, to expire after nine hours.
}
}

println!("Enter your username: ");
print!("Enter your username: ");
let username = user_input();

http_handler.submit(username.as_str());
Expand Down

0 comments on commit 6920d44

Please sign in to comment.