sockjs-protocol icon indicating copy to clipboard operation
sockjs-protocol copied to clipboard

XhrPolling.test_transport fails because of the bug at verify_content_type

Open ngocdaothanh opened this issue 12 years ago • 0 comments

Source code of verify_content_type:

def verify_content_type(self, r, content_type):
    self.assertEqual(r['content-type'].replace(' ', ''), content_type)

It always fails when content_type contains space:

self.verify_content_type(r, 'text/plain; charset=UTF-8')

ngocdaothanh avatar Jan 18 '13 06:01 ngocdaothanh