Skip to content
Myr

Terminate simple server success response with double CRLF (#3542)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The simple success case had only the status line plus a single CRLF, and pedantic HTTP client implementations (`hyper`) stumbled over this. A double CRLF makes it OK. Fixes #3541.

authored by Jan Verbeek · committed by GitHub · parent e8b34cb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/server.go+1 added-1 removed
216 unmodified lines
217 return bad("no action specified")218 }219220 server.actionChannel <- actions221 return httpOk221 return httpOk + crlf222}223224func parseGetParams(query string) getParams {225 params := getParams{limit: 100, offset: 0}
19 unmodified lines