kubo/core/corehttp
Marcin Rataj 3182986151 fix(gw): ensure dir URLs have trailing slash
This fixes a regression around directory listing and index.html hosting.
Seems that during one of recent refactors code changed and we no longer
check for trailing slash in HTTP request path, but look at content path
instead.

This cleans this up and also ensures dir behavior is the same for
both index.html hosting and dir-index-html (generated listing).

It also adds more tests so we catch any future regressions.
2022-07-21 21:06:18 +02:00
..
commands.go fix(cmds): use kubo in CheckVersionOption 2022-07-06 23:08:31 +02:00
corehttp.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_handler_block.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_handler_car.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_handler_unixfs_dir.go fix(gw): ensure dir URLs have trailing slash 2022-07-21 21:06:18 +02:00
gateway_handler_unixfs_file.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_handler_unixfs.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_handler.go feat(gw): Cache-Control: only-if-cached 2022-07-07 08:49:26 +02:00
gateway_indexPage.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
gateway_test.go fix(gw): ensure dir URLs have trailing slash 2022-07-21 21:06:18 +02:00
gateway.go feat(gw): Cache-Control: only-if-cached 2022-07-07 08:49:26 +02:00
hostname_test.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
hostname.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
lazyseek_test.go chore: replace ioutil with io and os (#8969) 2022-06-14 12:37:02 -04:00
lazyseek.go fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
logs.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
metrics_test.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
metrics.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
mutex_profile.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
option_test.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
p2p_proxy_test.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
p2p_proxy.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
redirect.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
webui.go chore(deps): webui v2.15.1 2022-07-07 01:45:19 +02:00