Skip to content

Commit

Permalink
Merge pull request #88 from stripe/brandur-whitelist-approve-decline
Browse files Browse the repository at this point in the history
Whitelist RPC-style actions `/approve` and `/decline`
  • Loading branch information
brandur-stripe authored Jul 25, 2018
2 parents 1c29d2a + 59d4fc0 commit 47ec9de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,11 @@ var hasPrimaryIDSuffixes = [...]string{

// These are resource "actions". They don't take the standard form, but we
// can expect an object's primary ID to live right before them in a path.
"/approve",
"/capture",
"/cancel",
"/close",
"/decline",
"/pay",
"/refund",
"/reject",
Expand Down

0 comments on commit 47ec9de

Please sign in to comment.