From df0406902e86dfbf4a3cc1b64d965c311996455b Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Sat, 5 May 2012 07:44:10 +0200 Subject: [PATCH] fixed static file offloading --- protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol.c b/protocol.c index 8869c588..62273fab 100644 --- a/protocol.c +++ b/protocol.c @@ -1968,6 +1968,7 @@ int uwsgi_file_serve(struct wsgi_request *wsgi_req, char *document_root, uint16_ // filename memcpy(uor->real_filename, real_filename, real_filename_len); uor->real_filename_len = real_filename_len; + uor->real_filename[uor->real_filename_len] = 0; // avoid closing the connection wsgi_req->fd_closed = 1;