-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
http, benchmark: remove CRLF variables #59466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59466 +/- ##
==========================================
- Coverage 89.88% 89.88% -0.01%
==========================================
Files 656 656
Lines 192963 192963
Branches 37845 37850 +5
==========================================
- Hits 173448 173443 -5
+ Misses 12049 12046 -3
- Partials 7466 7474 +8 🚀 New features to boost your workflow:
|
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not remove the export until End-of-Life deprecation.
Thanks for the review! Based on your feedback, I've added a commit to restore the |
eff20f7
to
080e9d3
Compare
This PR replaces remaining usages of the
CRLF
variable with the string literal\r\n
and removes theCRLF
export from_http_common.js
.Background
In #40101, it was discussed that using the string literal
\r\n
is clearer and more explicit than using aCRLF
variable. Based on this consensus, this PR replaces all remaining usages of theCRLF
variable with the\r\n
literal.About removing the export
Previously, there was a TODO comment not to remove the
CRLF
export from_http_common.js
because the module was considered "semi-public" and should not have breaking changes without proper deprecation (discussion).However, as of #59293, the
_http_common.js
module (along with othernode:_http_*
modules) is now officially deprecated and considered internal-only:Given this, I considered it appropriate to remove the
CRLF
export.