usebruno/bruno

[Feature Request] Support LF line breaks as well as CRLF line breaks

Open

#326 geöffnet am 4. Okt. 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.403 Forks)batch import
good first issuehelp wantedmodule-request

Repository-Metriken

Stars
 (43.787 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 21h) (96 gemergte PRs in 30 T)

Beschreibung

Currently, when a client sends LF instead of CRLF as a newline character, Bruno errors out with the following message:

Error invoking remote method 'send-http-request': Error: Parse Error: Missing expected CR after header value

Insomnia does support LF newlines, and I think Bruno should as well; RFC7230 Section 3.5 also allows for this:

Although the line terminator for the start-line and header fields is the sequence CRLF, a recipient MAY recognize a single LF as a terminator and ignore any preceding CR.

Contributor Guide