teler-sh / teler-waf

teler-waf is a Go HTTP middleware that protects local web services from OWASP Top 10 threats, known vulnerabilities, malicious actors, botnets, unwanted crawlers, and brute force attacks.
https://test.teler.sh
Apache License 2.0
354 stars 32 forks source link

feat: add Response option & new custom headers #70

Closed dwisiswant0 closed 1 year ago

dwisiswant0 commented 1 year ago

IMPORTANT: Please do not create a PR without creating an issue first!

(Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request).

Summary

Explains the information and/or motivation for making this changes...

Proposed of changes

This PR fixes/implements the following bugs/features:

How has this been tested?

Proof:

Closing issues

Fixes #

Checklist:

dwisiswant0 commented 1 year ago

TODO:

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 92.50% and project coverage change: +0.66% :tada:

Comparison is base (137a2e7) 71.78% compared to head (f531c61) 72.44%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #70 +/- ## ========================================== + Coverage 71.78% 72.44% +0.66% ========================================== Files 5 5 Lines 964 998 +34 ========================================== + Hits 692 723 +31 - Misses 227 229 +2 - Partials 45 46 +1 ``` | [Files Changed](https://app.codecov.io/gh/kitabisa/teler-waf/pull/70?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kitabisa) | Coverage Δ | | |---|---|---| | [teler.go](https://app.codecov.io/gh/kitabisa/teler-waf/pull/70?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kitabisa#diff-dGVsZXIuZ28=) | `67.24% <81.25%> (+0.49%)` | :arrow_up: | | [handler.go](https://app.codecov.io/gh/kitabisa/teler-waf/pull/70?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kitabisa#diff-aGFuZGxlci5nbw==) | `88.23% <100.00%> (+4.90%)` | :arrow_up: | | [utils.go](https://app.codecov.io/gh/kitabisa/teler-waf/pull/70?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kitabisa#diff-dXRpbHMuZ28=) | `87.59% <100.00%> (+0.39%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.