Skip to content

Commit

Permalink
fixed uwsgi_buffer realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@quantal64 committed Sep 4, 2012
1 parent 837f6f3 commit a4c4b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/buffer.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion welcome.py
Expand Up @@ -135,7 +135,7 @@ def application(env, start_response):
""" % (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
Expand Down

0 comments on commit a4c4b7e

Please sign in to comment.