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):
4646 'text' : 'Test message from Mailgun'
4747 }
4848
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" })
5052
5153 if resp .status != 200 :
5254 raise RuntimeError (
@@ -68,7 +70,9 @@ def send_complex_message(recipient):
6870 'html' : '<html>HTML <strong>version</strong> of the body</html>'
6971 }
7072
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" })
7276
7377 if resp .status != 200 :
7478 raise RuntimeError (
You can’t perform that action at this time.
0 commit comments