equal
deleted
inserted
replaced
172 |
172 |
173 env[r'wsgi.input'] = self.rfile |
173 env[r'wsgi.input'] = self.rfile |
174 env[r'wsgi.errors'] = _error_logger(self) |
174 env[r'wsgi.errors'] = _error_logger(self) |
175 env[r'wsgi.multithread'] = isinstance(self.server, |
175 env[r'wsgi.multithread'] = isinstance(self.server, |
176 socketserver.ThreadingMixIn) |
176 socketserver.ThreadingMixIn) |
177 env[r'wsgi.multiprocess'] = isinstance(self.server, |
177 if util.safehasattr(socketserver, 'ForkingMixIn'): |
178 socketserver.ForkingMixIn) |
178 env[r'wsgi.multiprocess'] = isinstance(self.server, |
|
179 socketserver.ForkingMixIn) |
|
180 else: |
|
181 env[r'wsgi.multiprocess'] = False |
|
182 |
179 env[r'wsgi.run_once'] = 0 |
183 env[r'wsgi.run_once'] = 0 |
180 |
184 |
181 wsgiref.validate.check_environ(env) |
185 wsgiref.validate.check_environ(env) |
182 |
186 |
183 self.saved_status = None |
187 self.saved_status = None |