Mercurial > cpython-lru_cache-weakref
comparison Lib/dos-8x3/cgihttps.py @ 6986:638d877ea995 legacy-trunk
the usual
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 30 Dec 1997 04:20:58 +0000 |
| parents | 1bddba2f100e |
| children | c31257b92447 |
comparison
equal
deleted
inserted
replaced
| 6985:d4e9ac757e5c | 6986:638d877ea995 |
|---|---|
| 146 env['HTTP_ACCEPT'] = string.joinfields(accept, ',') | 146 env['HTTP_ACCEPT'] = string.joinfields(accept, ',') |
| 147 ua = self.headers.getheader('user-agent') | 147 ua = self.headers.getheader('user-agent') |
| 148 if ua: | 148 if ua: |
| 149 env['HTTP_USER_AGENT'] = ua | 149 env['HTTP_USER_AGENT'] = ua |
| 150 # XXX Other HTTP_* headers | 150 # XXX Other HTTP_* headers |
| 151 import regsub | 151 decoded_query = string.replace(query, '+', ' ') |
| 152 decoded_query = regsub.gsub('+', ' ', query) | |
| 153 try: | 152 try: |
| 154 os.setuid(nobody) | 153 os.setuid(nobody) |
| 155 except os.error: | 154 except os.error: |
| 156 pass | 155 pass |
| 157 os.dup2(self.rfile.fileno(), 0) | 156 os.dup2(self.rfile.fileno(), 0) |
