Skip to content

Commit 3a9205b

Browse files
Remove .decode("utf-8") from /webhooks (#34)
1 parent beb2375 commit 3a9205b

File tree

1 file changed

+1
-1
lines changed
  • python-flask-directory-sync-example

1 file changed

+1
-1
lines changed

python-flask-directory-sync-example/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def directory_groups():
7272
@app.route("/webhooks", methods=["GET", "POST"])
7373
def webhooks():
7474
if request.data:
75-
payload = request.get_data().decode("utf-8")
75+
payload = request.get_data()
7676
sig_header = request.headers["WorkOS-Signature"]
7777
response = workos_client.webhooks.verify_event(
7878
payload=payload, sig_header=sig_header, secret=os.getenv("WEBHOOKS_SECRET")

0 commit comments

Comments
 (0)