Commit 6aa0bef
committed
Constantify serve_{dir,file} test file paths and content
Mainly a QoL change for downstream packagers, but might also prove
useful for e.g. future refactors.
Currently we have to patch all those file paths to something exsistent,
due to test-files/ not being included in crates.io releases, while the
Debian Rust Team pulls Rust crate source from there:
https://salsa.debian.org/rust-team/debcargo-conf/-/blob/ee75c0c18a/src/tower-http/debian/patches/missing-testdata
With these constants we could change only them.
Test files are also changed to the same content, so one constant fits
all.1 parent d0c522b commit 6aa0bef
File tree
9 files changed
+184
-159
lines changed- test-files
- tower-http/src/services/fs
- serve_dir
9 files changed
+184
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments