[MONGOCRYPT-454] Include carriage return in HTTP requests Created: 06/Jul/22  Updated: 11/Jul/22  Resolved: 11/Jul/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates MONGOCRYPT-457 Use CRLF instead of LF newlines Closed
Binding Changes: Not Needed

 Description   

Scope

  • Use "\r\n" as the line delimiter, not "\n" for HTTP requests.

Background & Motivation

KMS message uses "\n" as the line delimiter. Example. This has not caused issues in practice with any KMS servers.

https://stackoverflow.com/a/5757349/774658 notes:

a recipient MAY recognize a single LF as a line terminator and ignore any preceding CR.


Generated at Thu Feb 08 09:08:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.