Skip to content

Commit 2c1e603

Browse files
authored
Bump to version 3.2.8 with acceptance tests fix (431 response when HTTP request is too large) (#844)
* Bump haproxy version to 3.2.8 * Update blob reference for haproxy to version 3.2.8 * fix expected http status 431 instead of 400
1 parent 59a10e8 commit 2c1e603

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

acceptance-tests/acceptance_tests_suite_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ func expect400(resp *http.Response, err error) {
200200
Expect(resp.StatusCode).To(Equal(http.StatusBadRequest))
201201
}
202202

203+
func expect431(resp *http.Response, err error) {
204+
Expect(err).NotTo(HaveOccurred())
205+
Expect(resp.StatusCode).To(Equal(http.StatusRequestHeaderFieldsTooLarge))
206+
}
207+
203208
func expect421(resp *http.Response, err error) {
204209
Expect(err).NotTo(HaveOccurred())
205210
Expect(resp.StatusCode).To(Equal(http.StatusMisdirectedRequest))

acceptance-tests/buffer_size_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var _ = Describe("max_rewrite and buffer_size_bytes", func() {
5353
// ensure total header size (key+value) is 72k
5454
req.Header.Set("X-Custom", string(randBytes(72*1024-len("X-Custom: "))))
5555

56-
expect400(http.DefaultClient.Do(req))
56+
expect431(http.DefaultClient.Do(req))
5757
})
5858
})
5959

config/blobs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
haproxy/haproxy-2.8.16.tar.gz:
2-
size: 4429238
3-
object_id: b5d1e4e1-03b6-40c8-5ba5-ba05cecee194
4-
sha: sha256:6eb4d3cc298af89613fc6cb175530436e1e463d368e43401a60357a7a12d15ab
1+
haproxy/haproxy-3.2.8.tar.gz:
2+
size: 5119011
3+
object_id: 4c878001-6931-4187-6129-6aa4eb51eb7c
4+
sha: sha256:46703fb94720f92cce2b08049a40d9176962037ba676885c55a56bd9d625e7c2
55
haproxy/hatop-0.8.2:
66
size: 74157
77
object_id: 00125e3f-bdaa-4da3-583f-b680b0b30df4

packages/haproxy/packaging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PCRE_VERSION=10.47 # https://github.com/PCRE2Project/pcre2/releases/download/pc
88

99
SOCAT_VERSION=1.8.0.3 # http://www.dest-unreach.org/socat/download/socat-1.8.0.3.tar.gz
1010

11-
HAPROXY_VERSION=2.8.16 # https://www.haproxy.org/download/2.8/src/haproxy-2.8.16.tar.gz
11+
HAPROXY_VERSION=3.2.8 # https://www.haproxy.org/download/3.2/src/haproxy-3.2.8.tar.gz
1212

1313
HATOP_VERSION=0.8.2 # https://github.com/jhunt/hatop/releases/download/v0.8.2/hatop
1414

0 commit comments

Comments
 (0)