sourcegraph/internal/httpcli
Vincent 1a834fdc4f
fix: block URLs without a hostname (#64248)
In Go it's possible to have URLs without a valid host portion 🤷 .
This has unintended side-effects when filtering hostnames.

## Test plan
Tested that URLs that have no hostname are now blocked.

<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->

## Changelog

<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->
2024-08-02 15:53:33 +01:00
..
BUILD.bazel rcache: Explicitly pass redis pool to use (#63644) 2024-07-10 01:23:19 +02:00
client_test.go httpcli: add prometheus metric for monitoring the rate that Sourcegraph issues requests to external services 2024-04-02 13:50:07 -07:00
client.go fix: block URLs without a hostname (#64248) 2024-08-02 15:53:33 +01:00
CODENOTIFY all: remove tsenart from CODENOTIFY (#41035) 2022-08-30 09:35:14 +02:00
doc.go
external.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
init.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
noop_response_cache.go Use uncached doer for downloading packages (#48977) 2023-03-22 18:56:31 +00:00
redis_logger_middleware_test.go httpcli: Move init function from conf package into httpcli (#62318) 2024-05-02 18:30:44 +02:00
redis_logger_middleware.go rcache: Explicitly pass redis pool to use (#63644) 2024-07-10 01:23:19 +02:00
transport.go httpcli: introduce mutable, wrapped transports (#39775) 2022-08-02 13:12:10 +00:00