mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 23:12:55 +00:00
we first need to read all the input to be able to send an error
* this is done by creating the cgi.FieldStorage
This commit is contained in:
parent
3111958b1e
commit
6ff6fb94bd
1 changed files with 2 additions and 2 deletions
|
@ -123,9 +123,10 @@ def ensure_namespaced(name, namespace):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
form = cgi.FieldStorage()
|
||||||
|
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
config.read('/etc/dist-git/dist-git.conf')
|
config.read('/etc/dist-git/dist-git.conf')
|
||||||
|
|
||||||
os.umask(0o002)
|
os.umask(0o002)
|
||||||
|
|
||||||
username = os.environ.get('SSL_CLIENT_S_DN_CN', None)
|
username = os.environ.get('SSL_CLIENT_S_DN_CN', None)
|
||||||
|
@ -141,7 +142,6 @@ def main():
|
||||||
|
|
||||||
assert os.environ['REQUEST_URI'].split('/')[1] == 'repo'
|
assert os.environ['REQUEST_URI'].split('/')[1] == 'repo'
|
||||||
|
|
||||||
form = cgi.FieldStorage()
|
|
||||||
name = check_form(form, 'name').strip('/')
|
name = check_form(form, 'name').strip('/')
|
||||||
|
|
||||||
# Search for the file hash, start with stronger hash functions
|
# Search for the file hash, start with stronger hash functions
|
||||||
|
|
Loading…
Add table
Reference in a new issue