http-server
http-server copied to clipboard
Fix timeout flag behavior
Fix timeout flag behavior for 0 value, negative value, empty value, and non-numeric value. Add timeout flag description to README.
Example
0 or negative values
-t0 -t-42 -> timeout of 0s (i.e. timeout disabled)
Empty or non-numeric values
-t -t' ' -ta1 -t1a -> reject timeout value as invalid, and hence fallback to default timeout of 120s
Relevant issues
Fixes #804
Contributor checklist
- [ ] Provide tests for the changes (unless documentation-only)
- [x] Documented any new features, CLI switches, etc. (if applicable)
- [x] Server
--helpoutput - [x] README.md
- [x] doc/http-server.1 (use the same format as other entries)
- [x] Server
- [x] The pull request is being made against the
masterbranch
Maintainer checklist
- [ ] Assign a version triage tag
- [ ] Approve tests if applicable
This pull request has been inactive for 360 days