Skip to content

feat: enhance hook configuration with HTTP method sanitization#84

Merged
soulteary merged 1 commit intomainfrom
test-script-space
Jan 6, 2026
Merged

feat: enhance hook configuration with HTTP method sanitization#84
soulteary merged 1 commit intomainfrom
test-script-space

Conversation

@soulteary
Copy link
Copy Markdown
Owner

  • Added a method to sanitize and validate HTTP methods in hook configurations, ensuring only valid methods are retained.
  • Updated the LoadFromFile function to incorporate sanitization during the loading process.
  • Improved handling of multipart form data in the server, allowing for multiple values and files to be processed correctly.

- Added a method to sanitize and validate HTTP methods in hook configurations, ensuring only valid methods are retained.
- Updated the LoadFromFile function to incorporate sanitization during the loading process.
- Improved handling of multipart form data in the server, allowing for multiple values and files to be processed correctly.
@soulteary soulteary merged commit 40230bc into main Jan 6, 2026
2 checks passed
Comment thread internal/server/server.go
continue
var part map[string]interface{}
err = decoder.Decode(&part)
f.Close() // 立即关闭文件句柄

Check warning

Code scanning / gosec

Errors unhandled Warning

Errors unhandled
@soulteary soulteary deleted the test-script-space branch January 6, 2026 18:10
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

Successfully merging this pull request may close these issues.

2 participants