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

net/http: No need to use a Windows-31J encoded regexp to strip the Host #4286

Closed

Conversation

casperisfine
Copy link
Contributor

I noticed this regexp because of the crash reported in #4119 (comment)

It was introduced by @nurse in c1652035644, but I don't see any reason to set a Windows-31J encoding on this regexp.

It's probably not a big deal, but I'm thinking we might as well use a default US-ASCII.

cc @XrXr @tenderlove

@XrXr
Copy link
Member

XrXr commented Mar 18, 2021

Could you send this to https://github.com/ruby/net-http?

@casperisfine
Copy link
Contributor Author

Ah damn, I always forget some of the stdlibs have their own repo.

@nurse
Copy link
Member

nurse commented Mar 18, 2021

The intention looks /:.*/m

@casperisfine
Copy link
Contributor Author

Closing in favor of ruby/net-http#18

@XrXr XrXr deleted the net-http-windows-31-j-regexp branch March 18, 2021 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants