Hi, Modified the code to this:
for k, v in iteritems(headers): if isinstance(v, list): rheaders += [(k, str(item)) for item in v] else: rheaders.append((k, str(v))) This was the code from version 2.24.1 Dont know if this is correct. Cheers, El miércoles, 18 de octubre de 2023 a las 11:37:30 UTC-5, xgp.l...@gmail.com escribió: > Hi Massimo, > > Getting this redirecting from nginx to uwsgi_pass http port. > > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase > return http_response.to(responder, env=env) > File "/home/www-data/web2py/gluon/http.py", line 129, in to > responder(status, rheaders) > TypeError: http header value must be a string > > > Regards, > > > El lunes, 9 de octubre de 2023 a las 3:38:11 UTC-5, CarlosDB escribió: > >> A fantastic job. >> Thank you very much. >> >> Carlos. >> >> El domingo, 8 de octubre de 2023 a las 20:59:27 UTC+2, Massimo Di Pierro >> escribió: >> >>> Hello everybody, >>> >>> A new version of web2py, 2.25.1, is out. >>> >>> It contains some bug fixes, #2468 #2468 #2236, http headers >>> sanitization, and fixes this vulenarbility >>> https://jvn.jp/en/jp/JVN80476432/ (to be published soon). >>> >>> The vulnerabily does not affect most users. It is only in the optional >>> MessageBoxHandler for logging when using Tkinter. I do know think anybody >>> is was using it. >>> >>> I am reviewing some old PRs and I may have another version out today >>> including those fixes as well. Sorry I have been slow but as you know, I am >>> spending more time on py4web than web2py these days. >>> >>> Massimo >>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2499d89f-f635-4e82-915c-15acbee3550bn%40googlegroups.com.