Skip to content

Commit

Permalink
bumped to 0.2.1 for a hotfix release
Browse files Browse the repository at this point in the history
  • Loading branch information
10fish committed Mar 3, 2024
1 parent ec3571f commit a617adc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "httprs"
description = "A fast simple command line http server tool"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
authors = ["10fish <jokefish@live.com>"]
license-file = "LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub const ROOT_PATH_KEY: &'static str = "HTTPRS_ROOT";

/// Simple cli http server for static files
#[derive(Debug, Parser, Deserialize)]
#[command(name = "httprs", author = "10fish", version = "0.2.0")]
#[command(name = "httprs", author = "10fish", version = "0.2.1")]
#[command(version, about, long_about = None, after_long_help = "./after-help.md")]
pub struct Config {
/// path of toml config file
Expand Down
4 changes: 2 additions & 2 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ const HTML_TEMPLATE: &'static str = r###"
<hr>
{{body}}
<hr>
<p style="text-align: center;"><i>Powered by httprs v0.2.0 © 2024</i></p>
<p style="text-align: center;"><i>Powered by httprs v0.2.1 © 2024</i></p>
</body>
</html>
"###;

const HEADER_SERVER_VALUE: HeaderValue = HeaderValue::from_static("httprs v0.2.0");
const HEADER_SERVER_VALUE: HeaderValue = HeaderValue::from_static("httprs v0.2.1");

/// response with partial content when body size larger than 50MB
const RESPONSE_BODY_SIZE_LIMIT_IN_BYTES: u64 = 50 * 1024 * 1024;
Expand Down

0 comments on commit a617adc

Please sign in to comment.