mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 01:24:54 +00:00
chore: fix some typos in comments
Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
parent
48c76cf80d
commit
eb5b53bb86
2 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ The IP can be IPv4- or IPv6-formatted, using [CIDR notation](https://en.wikipedi
|
||||||
### Match scalr-signature
|
### Match scalr-signature
|
||||||
|
|
||||||
The trigger rule checks the scalr signature and also checks that the request was signed less than 5 minutes before it was received.
|
The trigger rule checks the scalr signature and also checks that the request was signed less than 5 minutes before it was received.
|
||||||
A unqiue signing key is generated for each webhook endpoint URL you register in Scalr.
|
A unique signing key is generated for each webhook endpoint URL you register in Scalr.
|
||||||
Given the time check make sure that NTP is enabled on both your Scalr and webhook server to prevent any issues
|
Given the time check make sure that NTP is enabled on both your Scalr and webhook server to prevent any issues
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
|
@ -157,7 +157,7 @@ func ExtractCommaSeparatedValues(source, prefix string) []string {
|
||||||
|
|
||||||
// ExtractSignatures will extract all the signatures from the source.
|
// ExtractSignatures will extract all the signatures from the source.
|
||||||
func ExtractSignatures(source, prefix string) []string {
|
func ExtractSignatures(source, prefix string) []string {
|
||||||
// If there are multiple possible matches, let the comma seperated extractor
|
// If there are multiple possible matches, let the comma separated extractor
|
||||||
// do it's work.
|
// do it's work.
|
||||||
if strings.Contains(source, ",") {
|
if strings.Contains(source, ",") {
|
||||||
return ExtractCommaSeparatedValues(source, prefix)
|
return ExtractCommaSeparatedValues(source, prefix)
|
||||||
|
|
Loading…
Add table
Reference in a new issue