Skip to content

Commit 28171ab

Browse files
omgitsadsCopilot
authored andcommitted
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 48d50cd commit 28171ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/http/handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ func TestContentTypeHandling(t *testing.T) {
708708
body := `{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}`
709709
req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(body))
710710
req.Header.Set(headers.AuthorizationHeader, "Bearer ghp_testtoken")
711-
req.Header.Set("Accept", "application/json, text/event-stream")
711+
req.Header.Set(headers.AcceptHeader, strings.Join([]string{headers.ContentTypeJSON, headers.ContentTypeEventStream}, ", "))
712712
if tt.contentType != "" {
713713
req.Header.Set(headers.ContentTypeHeader, tt.contentType)
714714
}

0 commit comments

Comments
 (0)