[PR #45] [MERGED] fixed unknown block or directive error #57

Closed
opened 2026-02-28 01:20:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tufanbarisyildirim/gonginx/pull/45
Author: @mofantor
Created: 4/10/2024
Status: Merged
Merged: 4/19/2024
Merged by: @tufanbarisyildirim

Base: masterHead: fix/#42#43#44


📝 Commits (2)

  • 1791d22 fixed unknown block or directive error
  • b9cadac make linter happy

📊 Changes

12 files changed (+731 additions, -12 deletions)

View changed files

📝 parser/parser.go (+25 -12)
📝 parser/parser_test.go (+49 -0)
parser/skip_valid_block.go (+18 -0)
testdata/full_conf/fastcgi.conf (+26 -0)
testdata/full_conf/fastcgi_params (+25 -0)
testdata/full_conf/koi-utf (+109 -0)
testdata/full_conf/koi-win (+103 -0)
testdata/full_conf/mime.types (+99 -0)
testdata/full_conf/nginx.conf (+117 -0)
testdata/full_conf/scgi_params (+17 -0)
testdata/full_conf/uwsgi_params (+17 -0)
testdata/full_conf/win-utf (+126 -0)

📄 Description

  • Added WithSkipValidBlocks option to skip valid sub-directives in blocks
  • Skip valid blocks by default (e.g., types, map)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tufanbarisyildirim/gonginx/pull/45 **Author:** [@mofantor](https://github.com/mofantor) **Created:** 4/10/2024 **Status:** ✅ Merged **Merged:** 4/19/2024 **Merged by:** [@tufanbarisyildirim](https://github.com/tufanbarisyildirim) **Base:** `master` ← **Head:** `fix/#42#43#44` --- ### 📝 Commits (2) - [`1791d22`](https://github.com/tufanbarisyildirim/gonginx/commit/1791d22abad2c97de3cec9cddf486955db80697d) fixed unknown block or directive error - [`b9cadac`](https://github.com/tufanbarisyildirim/gonginx/commit/b9cadac3c674eb91a126c58fd16042041cb97235) make linter happy ### 📊 Changes **12 files changed** (+731 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+25 -12) 📝 `parser/parser_test.go` (+49 -0) ➕ `parser/skip_valid_block.go` (+18 -0) ➕ `testdata/full_conf/fastcgi.conf` (+26 -0) ➕ `testdata/full_conf/fastcgi_params` (+25 -0) ➕ `testdata/full_conf/koi-utf` (+109 -0) ➕ `testdata/full_conf/koi-win` (+103 -0) ➕ `testdata/full_conf/mime.types` (+99 -0) ➕ `testdata/full_conf/nginx.conf` (+117 -0) ➕ `testdata/full_conf/scgi_params` (+17 -0) ➕ `testdata/full_conf/uwsgi_params` (+17 -0) ➕ `testdata/full_conf/win-utf` (+126 -0) </details> ### 📄 Description * Added WithSkipValidBlocks option to skip valid sub-directives in blocks * Skip valid blocks by default (e.g., types, map) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 01:20:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gonginx#57
No description provided.