Skip to content

Upgrade Go to 1.26.x #50640

Description

@belimawr

Upgrade Go to the latest 1.26.

Changes that are currently affecting us

net/http - Changelog

Client now uses and sets cookies scoped to URLs with the host portion matching Request.Host when available. Previously, the connection address host was always used. ServeMux trailing slash redirects now use HTTP status 307 (Temporary Redirect) instead of 301 (Moved Permanently).

This breaks TestMux/path_clean_conformance from x-pack/filebeat/input/http_endpoint/input_test.go:890

=== RUN   TestMux/path_clean_conformance
    input_test.go:922: path "/a//b": status mux=301, http.ServeMux=307
    input_test.go:922: path "/a/b/../": status mux=301, http.ServeMux=307
    input_test.go:922: path "/a/./b": status mux=301, http.ServeMux=307
    input_test.go:922: path "/x///y/z/": status mux=301, http.ServeMux=307
    input_test.go:922: path "/x/y/z/../z/": status mux=301, http.ServeMux=307
    input_test.go:922: path "/x/y/../y/z/": status mux=301, http.ServeMux=307
--- FAIL: TestMux (0.00s)

I've already pinged the team that owns the http_endpoint input for help on how they want to fix that.

PR updating the behaviour: #50686

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions