fixed uwsgi_buffer realloc

This commit is contained in:
roberto@quantal64
2012-09-04 18:13:16 +02:00
parent 837f6f3a54
commit a4c4b7e8d2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
View File
@@ -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