Skip to content

Commit e6abc18

Browse files
committed
Fix rendering of the HTTP request line to match RFC-2616.
1 parent 695e6e6 commit e6abc18

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ 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+
## Unreleased
14+
15+
### Fixed
16+
17+
- Fix rendering of the HTTP request line to match RFC-2616
18+
1319
## [0.3.3] - 2022-07-11
1420

1521
### Fixed

cmd/echo-server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func writeSSEField(
251251

252252
// writeRequest writes request headers to w.
253253
func writeRequest(w io.Writer, req *http.Request) {
254-
fmt.Fprintf(w, "%s %s %s\n", req.Proto, req.Method, req.URL)
254+
fmt.Fprintf(w, "%s %s %s\n", req.Method, req.URL, req.Proto)
255255
fmt.Fprintln(w, "")
256256

257257
fmt.Fprintf(w, "Host: %s\n", req.Host)

0 commit comments

Comments
 (0)