Skip to content

Commit

Permalink
switch header to tinyhttp version
Browse files Browse the repository at this point in the history
  • Loading branch information
mateocabanal committed Oct 13, 2023
1 parent 3996760 commit 86646b0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tinyhttp-codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tinyhttp-codegen"
version = "0.4.0-rc1"
version = "0.4.0-rc2"
authors = ["Mateo Cabanal <mateo200525@gmail.com>"]
edition = "2018"
license = "GPL-2.0-or-later"
Expand All @@ -16,4 +16,4 @@ proc-macro = true
[dependencies]
syn = { version = "1.0.98", features = ["full"] }
quote = "1.0.18"
tinyhttp-internal = { path = "../tinyhttp-internal", version = "0.4.0-rc1" }
tinyhttp-internal = { path = "../tinyhttp-internal", version = "0.4.0-rc2" }
2 changes: 1 addition & 1 deletion tinyhttp-internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["http", "server"]
license = "GPL-2.0-or-later"
name = "tinyhttp-internal"
repository = "https://github.com/mateocabanal/tinyhttp-internal"
version = "0.4.0-rc1"
version = "0.4.0-rc2"

[dependencies]
mime_guess = "2.0.4"
Expand Down
4 changes: 2 additions & 2 deletions tinyhttp-internal/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ fn parse_request<P: Read + Write>(conn: &mut P, mut config: Config) {
.insert("Content-Type: ".to_string(), inferred_mime + "\r\n");

res_brw.headers.insert(
"tinyhttp:".to_string(),
option_env!("CARGO_PKG_VERSION").unwrap().to_string(),
"tinyhttp: ".to_string(),
option_env!("CARGO_PKG_VERSION").unwrap().to_string() + "\r\n",
);

let req_headers = request.get_headers();
Expand Down
6 changes: 3 additions & 3 deletions tinyhttp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tinyhttp"
version = "0.4.0-rc1"
version = "0.4.0-rc2"
edition = "2021"
authors = ["Mateo Cabanal <mateo200525@gmail.com>"]
license = "GPL-2.0-or-later"
Expand All @@ -26,8 +26,8 @@ name = "async"
required-features = ["async"]

[dependencies]
tinyhttp-internal = { path = "../tinyhttp-internal", version = "0.4.0-rc1", default-features = false }
tinyhttp-codegen = { path = "../tinyhttp-codegen", version = "0.4.0-rc1" }
tinyhttp-internal = { path = "../tinyhttp-internal", version = "0.4.0-rc2", default-features = false }
tinyhttp-codegen = { path = "../tinyhttp-codegen", version = "0.4.0-rc2" }

[features]
default = ["ssl", "sys", "log"]
Expand Down

0 comments on commit 86646b0

Please sign in to comment.