Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/go-mod-07f3a6036d
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeymike authored Dec 19, 2024
2 parents deedf15 + 1a56803 commit 2f07440
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 26 deletions.
6 changes: 4 additions & 2 deletions adjustments.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 18 additions & 8 deletions pkg/paddlenotification/adjustments.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/paddlenotification/shared.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/paddlenotification/subscriptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 21 additions & 10 deletions shared.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 25 additions & 4 deletions subscriptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions webhook_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func (wv *WebhookVerifier) Verify(req *http.Request) (bool, error) {
ts := matches[0][1]
h1 := matches[0][2]

const maxBodySize = 2 << 20 // 2 MB

req.Body = http.MaxBytesReader(nil, req.Body, maxBodySize)

body, err := io.ReadAll(req.Body)
if err != nil {
return false, err
Expand Down

0 comments on commit 2f07440

Please sign in to comment.