openresty / openresty/test-nginx
"server_name" should have a trim/strip applied
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 456
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
Using the "server_name" directive with the name under the header, lines are generated like this:
server_name 'example.com
'
placing the name in the header generates other errors.
I believe a simple string trim/strip would fix this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Perl code that parses the server_name directive and generates the Nginx configuration, then reproduce the example with the name under the header. Done means generated server_name output contains no surrounding line-break or indentation whitespace and the existing test suite passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- testing, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100