File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
appengine/standard/mailgun Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ def send_simple_message(recipient):
46
46
'text' : 'Test message from Mailgun'
47
47
}
48
48
49
- resp , content = http .request (url , 'POST' , urlencode (data ))
49
+ resp , content = http .request (
50
+ url , 'POST' , urlencode (data ),
51
+ headers = {"Content-Type" : "application/x-www-form-urlencoded" })
50
52
51
53
if resp .status != 200 :
52
54
raise RuntimeError (
@@ -68,7 +70,9 @@ def send_complex_message(recipient):
68
70
'html' : '<html>HTML <strong>version</strong> of the body</html>'
69
71
}
70
72
71
- resp , content = http .request (url , 'POST' , urlencode (data ))
73
+ resp , content = http .request (
74
+ url , 'POST' , urlencode (data ),
75
+ headers = {"Content-Type" : "application/x-www-form-urlencoded" })
72
76
73
77
if resp .status != 200 :
74
78
raise RuntimeError (
You can’t perform that action at this time.
0 commit comments