We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e3edb0 commit c0e3239Copy full SHA for c0e3239
src/main.rs
@@ -266,7 +266,7 @@ fn main() {
266
let upload: Option<Upload> = if upload_arg {
267
let token: String = thread_rng()
268
.sample_iter(&Alphanumeric)
269
- .take(8)
+ .take(10)
270
.map(char::from)
271
.collect();
272
Some(Upload { csrf_token: token })
@@ -515,14 +515,14 @@ impl MainHandler {
515
None => {
516
return Err((
517
status::BadRequest,
518
- String::from("csrf token not provided"),
+ String::from("csrf parameter not provided"),
519
))
520
}
521
},
522
523
524
525
526
527
528
};
0 commit comments