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

Is SERVER_PORT required? #1571

Closed
ioquatix opened this issue Feb 6, 2020 · 4 comments
Closed

Is SERVER_PORT required? #1571

ioquatix opened this issue Feb 6, 2020 · 4 comments
Milestone

Comments

@ioquatix
Copy link
Member

ioquatix commented Feb 6, 2020

SERVER_PORT is required, so I would leave it in the check a few lines above. I do agree that we should check it is an integer.

Originally posted by @jeremyevans in #1561

Tests allow for it to be an empty string or not specified at all. The recent PR #1561 codifies this to Rack::Lint. Do we want to change this?

@jeremyevans
Copy link
Contributor

As discussed, it may not make sense for unix sockets. So we may want to say it isn't required, but if set it must be an integer.

@ioquatix
Copy link
Member Author

ioquatix commented Feb 7, 2020

Implemented.

@ioquatix ioquatix closed this as completed Feb 7, 2020
@ioquatix
Copy link
Member Author

ioquatix commented Feb 7, 2020

I reverted this. There were a ton of specs that provided a string containing an Integer.

I think we can revisit this for 3.0.

@ioquatix
Copy link
Member Author

ioquatix commented May 24, 2020

We made this optional in 2266e08

So the answer is, no. It must be nil or an Integer.

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

No branches or pull requests

2 participants