wsgi.py 299 B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. class CustomWSGIWrapper(object):
  4. def __init__(self, app):
  5. from patch import patch_requests
  6. patch_requests()
  7. self.app = app
  8. def __call__(self, environ, start_response):
  9. return self.app(environ, start_response)