Skip to content
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

fix: incorrect http(s) regexp #1212

Merged
merged 2 commits into from
Feb 8, 2022
Merged

fix: incorrect http(s) regexp #1212

merged 2 commits into from
Feb 8, 2022

Conversation

cjh980402
Copy link
Contributor

/^http?s/ is matched for htts and https.
It should fix to /^https?:/ (matched for http: and https:)

@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2022

Codecov Report

Merging #1212 (6c844f5) into main (4c206cb) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1212   +/-   ##
=======================================
  Coverage   93.50%   93.50%           
=======================================
  Files          43       43           
  Lines        4035     4035           
=======================================
  Hits         3773     3773           
  Misses        262      262           
Impacted Files Coverage Δ
lib/fetch/util.js 76.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c206cb...6c844f5. Read the comment docs.

@ronag
Copy link
Member

ronag commented Feb 8, 2022

Do you think you could add a regression test?

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cjh980402
Copy link
Contributor Author

Do you think you could add a regression test?

I add more test for requestBadPort

@ronag ronag merged commit d94dc15 into nodejs:main Feb 8, 2022
KhafraDev pushed a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
* fix: incorrect http(s) regexp

* Add more test for requestBadPort
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
* fix: incorrect http(s) regexp

* Add more test for requestBadPort
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* fix: incorrect http(s) regexp

* Add more test for requestBadPort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants