kubo/core/corehttp
Marcin Rataj fd01acdfc0
feat(gateway): ?filename with download=true
This implements 'attachment' mode triggered then
?filename parameter is accompanied with &download=true

When Content-Disposition: attachment is detected by a modern browser
it will skip rendering and immediately open the "save as" dialog,
making this useful feature for using IPFS gateway as target of
"Download" links on various websites.

Parameter name was suggested in:
https://github.com/ipfs/go-ipfs/pull/4177#issuecomment-414870327
2020-09-16 22:15:18 +02:00
..
commands.go HTTP API: Disallow GET requests on API 2020-04-05 09:57:57 +02:00
corehttp.go chore: update go-multiaddr and go-multiaddr-net 2020-08-25 15:24:48 -04:00
gateway_handler.go feat(gateway): ?filename with download=true 2020-09-16 22:15:18 +02:00
gateway_indexPage.go feat: Directory page UI improvements 2020-08-19 20:09:35 -04:00
gateway_test.go Merge pull request #7550 from trashhalo/dry-up-close 2020-08-25 12:06:26 -04:00
gateway.go http: use Method* constants 2020-01-10 10:19:08 +01:00
hostname_test.go refactor: cleanup/comment 2020-08-19 15:59:47 +02:00
hostname.go feat: Directory page UI improvements 2020-08-19 20:09:35 -04:00
lazyseek_test.go test(gateway): test the lazy seeker 2020-01-05 16:43:45 -08:00
lazyseek.go fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
logs.go fix(tracing): remove event tracing 2020-01-28 21:31:12 -08:00
metrics_test.go migrate to go-libp2p-core. 2019-05-31 23:23:52 -07:00
metrics.go pass opts.Namespace along like before 2019-10-23 10:46:11 +10:00
mutex_profile.go fix: use http.Error for sending errors 2019-05-25 10:45:17 -07:00
option_test.go http: use Method* constants 2020-01-10 10:19:08 +01:00
p2p_proxy_test.go rename ProxyOption to P2PProxyOption 2020-03-17 19:34:44 -07:00
p2p_proxy.go rename ProxyOption to P2PProxyOption 2020-03-17 19:34:44 -07:00
redirect.go fix the wrong path configuration in root redirection 2019-04-15 12:35:45 +09:00
webui.go chore: bump webui version 2020-07-24 12:37:02 -04:00