Klaus Demo bjoern / 4dd4864
Use file_wrapper only if we know Content-Length Jonas Haag 2 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8787 Py_DECREF(retval);
8888 first_chunk = NULL;
8989 }
90 } else if(FileWrapper_CheckExact(retval) && FileWrapper_GetFd(retval) != -1) {
90 } else if(!request->state.response_length_unknown && FileWrapper_CheckExact(retval) && FileWrapper_GetFd(retval) != -1) {
9191 DBG_REQ(request, "WSGI iterable is wsgi.file_wrapper instance and Content-Length is known");
9292 request->iterable = retval;
9393 request->iterator = NULL;