mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-11-22 03:00:25 +00:00
Remove redundant web.url
This commit is contained in:
parent
68257e41f0
commit
c54501a7f4
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class SimpleHandler(content.ContentMixin, web.RequestHandler):
|
|||
|
||||
|
||||
def make_application(**settings):
|
||||
application = web.Application([web.url(r'/', SimpleHandler)], **settings)
|
||||
application = web.Application([('/', SimpleHandler)], **settings)
|
||||
content.set_default_content_type(application, 'application/json',
|
||||
encoding='utf-8')
|
||||
content.add_transcoder(application, transcoders.MsgPackTranscoder())
|
||||
|
|
|
@ -77,7 +77,7 @@ class ContentSettings:
|
|||
self.write(response_body)
|
||||
|
||||
def make_application():
|
||||
app = web.Application([web.url('/', SomeHandler)])
|
||||
app = web.Application([('/', SomeHandler)])
|
||||
add_binary_content_type(app, 'application/msgpack',
|
||||
msgpack.packb, msgpack.unpackb)
|
||||
add_text_content_type(app, 'application/json', 'utf-8',
|
||||
|
|
Loading…
Reference in a new issue