mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-28 09:27:03 +00:00
fixed uwsgi_buffer realloc
This commit is contained in:
@@ -23,6 +23,7 @@ int uwsgi_buffer_append(struct uwsgi_buffer *ub, char *buf, size_t len) {
|
||||
uwsgi_error("realloc()");
|
||||
return -1;
|
||||
}
|
||||
ub->buf = new_buf;
|
||||
}
|
||||
|
||||
memcpy(ub->buf + ub->pos, buf, len);
|
||||
|
||||
+1
-1
@@ -135,7 +135,7 @@ Workers and applications<br/>
|
||||
|
||||
""" % (uwsgi.version, uwsgi.hostname, env.get('REMOTE_USER','None'), workers)
|
||||
|
||||
start_response('200 OK', [('Content-Type', 'text/html'), ('Content-Length', str(len(output)) )])
|
||||
start_response('200 %s' % ('x' * 10000), [('Content-Type', 'text/html'), ('Content-Length', str(len(output)) )])
|
||||
|
||||
#return bytes(output.encode('latin1'))
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user