Skip to content

Commit 3bb8c38

Browse files
committed
fix broken mime type test
This upstream change broke it: abonander/mime_guess#86
1 parent e12cbce commit 3bb8c38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gotham/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ hyper = { version = "0.14.12", features = ["http1", "runtime", "server", "stream
4040
linked-hash-map = { version = "0.5.6", optional = true }
4141
log = "0.4"
4242
mime = "0.3.15"
43-
mime_guess = "2.0.1"
43+
mime_guess = "2.0.5"
4444
num_cpus = "1.8"
4545
percent-encoding = "2.1"
4646
pin-project = "1.0.0"

gotham/src/handler/assets/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ mod tests {
554554
),
555555
(
556556
"scripts/script.js",
557-
HeaderValue::from_static("application/javascript"),
557+
HeaderValue::from_static("text/javascript"),
558558
"console.log('I am javascript!');",
559559
),
560560
];

0 commit comments

Comments
 (0)