Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion push.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import struct
from binascii import a2b_hex
Expand Down Expand Up @@ -39,7 +40,7 @@
print >>sys.stderr, 'Missing cert file %s' % PUSH_CERT
sys.exit(1)

payload = '{"aps":{"alert":"Broadcasting direct to apple with p12"}}'
payload = '{"aps":{"alert":"Broadcasting direct to apple with p12, 中文"}}'
fmt = '!BH32sH%ds' % len(payload)

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Expand Down