Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae464b1

Browse files
chenyumicbusunkim96leahecole
authored
fix: updated the app engine std pub/sub sample (GoogleCloudPlatform#3097)
Co-authored-by: Bu Sun Kim <[email protected]> Co-authored-by: Leah E. Cole <[email protected]>
1 parent b5bc41c commit ae464b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine/standard/pubsub/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def receive_messages_handler():
6868
current_app.config['PUBSUB_VERIFICATION_TOKEN']):
6969
return 'Invalid request', 400
7070

71-
envelope = json.loads(request.data.decode('utf-8'))
71+
envelope = json.loads(request.get_data().decode('utf-8'))
7272
payload = base64.b64decode(envelope['message']['data'])
7373

7474
MESSAGES.append(payload)

0 commit comments

Comments
 (0)