Change SNS http header to actual setting

This commit is contained in:
hsuhans 2018-06-02 06:18:27 +08:00
commit d9a4501d24
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ def test_publish_to_sqs_in_different_region():
@mock_sns
def test_publish_to_http():
def callback(request):
request.headers["Content-Type"].should.equal("application/json")
request.headers["Content-Type"].should.equal("text/plain; charset=UTF-8")
json.loads.when.called_with(
request.body.decode()
).should_not.throw(Exception)