Kaydet (Commit) e55bbf4c authored tarafından Jannis Leidel's avatar Jannis Leidel

Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed generator…

Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed generator and signing tests. Thanks, Aymeric Augustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 8258fe78
......@@ -285,7 +285,7 @@ class Rss201rev2Feed(RssFeed):
class Atom1Feed(SyndicationFeed):
# Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
mime_type = 'application/atom+xml; charset=utf8'
mime_type = 'application/atom+xml; charset=utf-8'
ns = u"http://www.w3.org/2005/Atom"
def write(self, outfile, encoding):
......
......@@ -13,7 +13,7 @@ class TestSigner(TestCase):
for s in (
'hello',
'3098247:529:087:',
u'\u2019'.encode('utf8'),
u'\u2019'.encode('utf-8'),
):
self.assertEqual(
signer.signature(s),
......
......@@ -66,6 +66,6 @@ class FeedgeneratorTest(unittest.TestCase):
"""
atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
self.assertEqual(
atom_feed.mime_type, "application/atom+xml; charset=utf8"
atom_feed.mime_type, "application/atom+xml; charset=utf-8"
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment