Show More
@@ -167,7 +167,8 b' def _is_request_chunked(environ):' | |||
|
167 | 167 | def _maybe_stream_request(environ): |
|
168 | 168 | path = get_path_info(environ) |
|
169 | 169 | stream = _is_request_chunked(environ) |
|
170 | log.debug('handling request `%s` with stream support: %s', path, stream) | |
|
170 | req_method = environ['REQUEST_METHOD'] | |
|
171 | log.debug('handling scm request: %s `%s` with stream support: %s', req_method, path, stream) | |
|
171 | 172 | |
|
172 | 173 | if stream: |
|
173 | 174 | # set stream by 256k |
@@ -42,7 +42,7 b' class UpdateModel(BaseModel):' | |||
|
42 | 42 | ver = rhodecode.__version__ |
|
43 | 43 | log.debug('Checking for upgrade on `%s` server', update_url) |
|
44 | 44 | opener = urllib.request.build_opener() |
|
45 |
opener.addheaders = [('User-agent', 'RhodeCode-SCM/ |
|
|
45 | opener.addheaders = [('User-agent', f'RhodeCode-SCM/{ver.strip()}')] | |
|
46 | 46 | response = opener.open(update_url) |
|
47 | 47 | response_data = response.read() |
|
48 | 48 | data = json.loads(response_data) |
General Comments 0
You need to be logged in to leave comments.
Login now