usebruno/bruno

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

Open

#326 创建于 2023年10月4日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (2,403 fork)batch import
good first issuehelp wantedmodule-request

仓库指标

Star
 (43,787 star)
PR 合并指标
 (平均合并 6天 21小时) (30 天内合并 96 个 PR)

描述

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.

贡献者指南