Skip to content

Commit 695e6e6

Browse files
committed
Bump version to v0.3.3.
1 parent 1dbb8ac commit 695e6e6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ The format is based on [Keep a Changelog], and this project adheres to
1010
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
1111
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1212

13+
## [0.3.3] - 2022-07-11
14+
15+
### Fixed
16+
17+
- Prevent rendering empty header value along real header values
18+
- Render all values for each header, not only the first
19+
1320
## [0.3.2] - 2022-07-08
1421

1522
### Changed

cmd/echo-server/main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func writeRequest(w io.Writer, req *http.Request) {
267267
}
268268

269269
func printHeaders(w io.Writer, h http.Header) {
270-
sortedKeys := make([]string, len(h))
270+
sortedKeys := make([]string, 0, len(h))
271271

272272
for key := range h {
273273
sortedKeys = append(sortedKeys, key)
@@ -276,6 +276,8 @@ func printHeaders(w io.Writer, h http.Header) {
276276
sort.Strings(sortedKeys)
277277

278278
for _, key := range sortedKeys {
279-
fmt.Fprintf(w, "%s: %s\n", key, h.Get(key))
279+
for _, value := range h[key] {
280+
fmt.Fprintf(w, "%s: %s\n", key, value)
281+
}
280282
}
281283
}

0 commit comments

Comments
 (0)