Skip to content

Commit

Permalink
Simplify a docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Jan 24, 2017
1 parent dec068b commit 459d094
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gidgethub/sansio.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ class ValidationFailure(GitHubException):


def validate(payload: bytes, *, signature: str, secret: str) -> None:
"""Validate that the webhook event body came from an approved repository.
ValidationFailure is raised if the provided signature does not match the
calculated signature.
"""
"""Validate that the webhook event body came from an approved repository."""
# https://developer.github.com/webhooks/securing/#validating-payloads-from-github
signature_prefix = "sha1="
if not signature.startswith(signature_prefix):
Expand Down

0 comments on commit 459d094

Please sign in to comment.