webhooks: Add missing space in Review Board.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-12-16 20:12:13 -08:00
committed by Anders Kaseorg
parent c02c053ec3
commit 65868b09eb
4 changed files with 7 additions and 5 deletions

View File

@@ -182,7 +182,9 @@ def api_reviewboard_webhook(
user_profile: UserProfile, user_profile: UserProfile,
payload: Dict[str, Sequence[Dict[str, Any]]] = REQ(argument_type="body"), payload: Dict[str, Sequence[Dict[str, Any]]] = REQ(argument_type="body"),
) -> HttpResponse: ) -> HttpResponse:
event_type = validate_extract_webhook_http_header(request, "X_REVIEWBOARD_EVENT", "ReviewBoard") event_type = validate_extract_webhook_http_header(
request, "X_REVIEWBOARD_EVENT", "Review Board"
)
assert event_type is not None assert event_type is not None
body_function = RB_MESSAGE_FUNCTIONS.get(event_type) body_function = RB_MESSAGE_FUNCTIONS.get(event_type)