mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +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():
|
||||
form = cgi.FieldStorage()
|
||||
|
||||
config = ConfigParser()
|
||||
config.read('/etc/dist-git/dist-git.conf')
|
||||
|
||||
os.umask(0o002)
|
||||
|
||||
username = os.environ.get('SSL_CLIENT_S_DN_CN', None)
|
||||
|
@ -141,7 +142,6 @@ def main():
|
|||
|
||||
assert os.environ['REQUEST_URI'].split('/')[1] == 'repo'
|
||||
|
||||
form = cgi.FieldStorage()
|
||||
name = check_form(form, 'name').strip('/')
|
||||
|
||||
# Search for the file hash, start with stronger hash functions
|
||||
|
|
Loading…
Add table
Reference in a new issue