Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
mercurial /
hgweb /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
1.05
KB
-rw-r--r--
2013-06-01 18:10
__init__.pyc
1.1
KB
-rw-r--r--
2020-03-31 23:33
__init__.pyo
1.1
KB
-rw-r--r--
2020-03-31 23:33
common.py
6.45
KB
-rw-r--r--
2013-06-01 18:10
common.pyc
7.58
KB
-rw-r--r--
2020-03-31 23:33
common.pyo
7.58
KB
-rw-r--r--
2020-03-31 23:33
hgweb_mod.py
15.06
KB
-rw-r--r--
2020-03-31 23:33
hgweb_mod.pyc
12.77
KB
-rw-r--r--
2020-03-31 23:33
hgweb_mod.pyo
12.77
KB
-rw-r--r--
2020-03-31 23:33
hgwebdir_mod.py
17.73
KB
-rw-r--r--
2013-06-01 18:10
hgwebdir_mod.pyc
15.34
KB
-rw-r--r--
2020-03-31 23:33
hgwebdir_mod.pyo
15.34
KB
-rw-r--r--
2020-03-31 23:33
protocol.py
3.13
KB
-rw-r--r--
2020-03-31 23:33
protocol.pyc
4.36
KB
-rw-r--r--
2020-03-31 23:33
protocol.pyo
4.36
KB
-rw-r--r--
2020-03-31 23:33
request.py
4.97
KB
-rw-r--r--
2013-06-01 18:10
request.pyc
5.78
KB
-rw-r--r--
2020-03-31 23:33
request.pyo
5.78
KB
-rw-r--r--
2020-03-31 23:33
server.py
11.49
KB
-rw-r--r--
2013-06-01 18:10
server.pyc
14.71
KB
-rw-r--r--
2020-03-31 23:33
server.pyo
14.71
KB
-rw-r--r--
2020-03-31 23:33
webcommands.py
34.62
KB
-rw-r--r--
2013-06-01 18:10
webcommands.pyc
34.66
KB
-rw-r--r--
2020-03-31 23:33
webcommands.pyo
34.66
KB
-rw-r--r--
2020-03-31 23:33
webutil.py
12.86
KB
-rw-r--r--
2013-06-01 18:10
webutil.pyc
17.75
KB
-rw-r--r--
2020-03-31 23:33
webutil.pyo
17.68
KB
-rw-r--r--
2020-03-31 23:33
wsgicgi.py
2.73
KB
-rw-r--r--
2013-06-01 18:10
wsgicgi.pyc
2.59
KB
-rw-r--r--
2020-03-31 23:33
wsgicgi.pyo
2.59
KB
-rw-r--r--
2020-03-31 23:33
Save
Rename
# hgweb/wsgicgi.py - CGI->WSGI translator # # Copyright 2006 Eric Hopper <hopper@omnifarious.org> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. # # This was originally copied from the public domain code at # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side import os, sys from mercurial import util from mercurial.hgweb import common def launch(application): util.setbinary(sys.stdin) util.setbinary(sys.stdout) environ = dict(os.environ.iteritems()) environ.setdefault('PATH_INFO', '') if environ.get('SERVER_SOFTWARE', '').startswith('Microsoft-IIS'): # IIS includes script_name in PATH_INFO scriptname = environ['SCRIPT_NAME'] if environ['PATH_INFO'].startswith(scriptname): environ['PATH_INFO'] = environ['PATH_INFO'][len(scriptname):] stdin = sys.stdin if environ.get('HTTP_EXPECT', '').lower() == '100-continue': stdin = common.continuereader(stdin, sys.stdout.write) environ['wsgi.input'] = stdin environ['wsgi.errors'] = sys.stderr environ['wsgi.version'] = (1, 0) environ['wsgi.multithread'] = False environ['wsgi.multiprocess'] = True environ['wsgi.run_once'] = True if environ.get('HTTPS', 'off').lower() in ('on', '1', 'yes'): environ['wsgi.url_scheme'] = 'https' else: environ['wsgi.url_scheme'] = 'http' headers_set = [] headers_sent = [] out = sys.stdout def write(data): if not headers_set: raise AssertionError("write() before start_response()") elif not headers_sent: # Before the first output, send the stored headers status, response_headers = headers_sent[:] = headers_set out.write('Status: %s\r\n' % status) for header in response_headers: out.write('%s: %s\r\n' % header) out.write('\r\n') out.write(data) out.flush() def start_response(status, response_headers, exc_info=None): if exc_info: try: if headers_sent: # Re-raise original exception if headers sent raise exc_info[0](exc_info[1], exc_info[2]) finally: exc_info = None # avoid dangling circular ref elif headers_set: raise AssertionError("Headers already set!") headers_set[:] = [status, response_headers] return write content = application(environ, start_response) try: for chunk in content: write(chunk) if not headers_sent: write('') # send headers now if body was empty finally: getattr(content, 'close', lambda : None)()