sourcegraph/cmd/frontend/internal/httpapi
Ólafur Páll Geirsson 7bc210bd4e Cody: add support for neovim, cody-cli, eclipse, and visualstudio clients (#63851)
Fixes CODY-2884

Previously, the server could respond with a 406 error when encountering
clients with the following names: cody-cli, eclipse, and visualstudio.
This error seems to only happen for enterprise clients. This PR fixes
the problem by adding special cases for these clients like we already
have for jetbrains and cody web.

<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

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

## Changelog

- Fix HTTP 406 error when using the Neovim Cody plugin with Enterprise
instances
<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->
2024-07-16 15:31:58 +02:00
..
completions Cody: add support for neovim, cody-cli, eclipse, and visualstudio clients (#63851) 2024-07-16 15:31:58 +02:00
releasecache chore(bazel): update ownership tags to increase coverage (#63001) 2024-05-31 14:10:29 +00:00
webhookhandlers logger: update log lib and remove use of description (#57690) 2023-10-18 17:29:08 +02:00
api_test.go Revert "Remove repoRefresh endpoint (#57730)" (#61483) 2024-03-29 00:28:14 +01:00
auth_test.go dotcom: MockSourcegraphDotComMode requires a T for cleanup (#61172) 2024-03-14 20:27:21 +00:00
auth.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00
BUILD.bazel Chore: remove gorilla/schema (#63738) 2024-07-10 15:36:37 +00:00
db_test.go bazel: first pass at moving moving logging linting into nogo (#58910) 2024-01-02 10:07:25 -08:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
graphql_test.go treat unknown actors as internal for the purpose of audit logs (#54876) 2023-07-12 16:34:24 -05:00
graphql.go Bug: remove extra GraphQL validation (#60943) 2024-03-07 15:46:21 -07:00
helpers.go all: use any instead of interface{} (#35102) 2022-05-09 10:59:39 +02:00
httpapi.go Chore: remove gorilla/schema (#63738) 2024-07-10 15:36:37 +00:00
internal_test.go httpapi: put internal API router next to handlers (#57990) 2023-11-01 15:37:29 +01:00
internal.go Cleanup internalapi after gRPC migration (#60572) 2024-02-19 14:13:26 +01:00
metrics.go Instrument GraphQL requests to publish metrics to Prometheus (#29320) 2022-01-11 09:48:00 +01:00
mocks_test.go chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
opencodegraph.go OpenCodeGraph prototype (#58675) 2023-12-06 21:39:33 -08:00
repo_refresh_test.go Revert "Remove repoRefresh endpoint (#57730)" (#61483) 2024-03-29 00:28:14 +01:00
repo_refresh.go Revert "Remove repoRefresh endpoint (#57730)" (#61483) 2024-03-29 00:28:14 +01:00
repo_shield_test.go Chore: clean up RepositoryResolver, part II (#59405) 2024-01-09 17:17:06 +00:00
repo_shield.go httpapi: Remove unused param (#45721) 2022-12-15 18:18:02 +01:00
search_test.go search: refactor anonymous interfaces (#61843) 2024-04-18 17:30:14 +02:00
search.go search: refactor anonymous interfaces (#61843) 2024-04-18 17:30:14 +02:00
src_cli_test.go src-cli: Fix version output (#40928) 2022-08-26 11:37:12 -05:00
src_cli.go logger: update log lib and remove use of description (#57690) 2023-10-18 17:29:08 +02:00
ssc.go Use newer config settings if available (allow local SAMS/SSC dev) (#62344) 2024-05-01 17:38:41 -07:00
stream_blame_test.go gitserver: Migrate Blame to rpc call (#59851) 2024-01-28 06:35:42 +01:00
stream_blame.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00