kubo/core/corehttp
Steven Allen 72490f7ed0 gateway: simplify/improve dnslink rewrite handling
Instead of adding a new fake header (that could be spoofed by the client...),
just read the original request URI from the request object.

This also removes support for suborigins. They have never been implemented in
browsers and it looks like efforts have stalled. We can add support back if we
need it but, well, maintaining support was going to be more trouble than it was
worth.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-03-17 19:34:44 -07:00
..
commands.go fix: migrate from deprecated warning function 2020-01-28 21:20:21 -08:00
corehttp.go Fix goprocess / lifecycle / ctx relations 2019-04-17 16:56:27 -07:00
gateway_handler.go gateway: simplify/improve dnslink rewrite handling 2020-03-17 19:34:44 -07:00
gateway_indexPage.go show hash if not in original url 2019-01-05 11:16:17 -08:00
gateway_test.go http: use Method* constants 2020-01-10 10:19:08 +01:00
gateway.go http: use Method* constants 2020-01-10 10:19:08 +01:00
ipns_hostname.go gateway: simplify/improve dnslink rewrite handling 2020-03-17 19:34:44 -07: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 feat: web ui 2.7.2 2019-12-04 08:15:58 +00:00