ruby / webrick

HTTP server toolkit
BSD 2-Clause "Simplified" License
286 stars 97 forks source link

Ensure server port numbers are numeric and ensure they are stored as … #55

Closed wishdev closed 4 years ago

wishdev commented 4 years ago

…integers

When passing in a "0" for the port number - the port number is not updated as is the intention. Ensuring the port number is stored as an integer solves this.

jeremyevans commented 4 years ago

Thanks for the patch! I agree that it makes sense to store the port as an integer.