[luci] luci.http.header don't works

Jo-Philipp Wich xm at subsignal.org
Fri Apr 20 17:52:23 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

use prepare_content to set the type:

  luci.http.prepare_content('text/html; charset=UTF-8')
  luci.http.write('Hello world')

~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+RhjcACgkQdputYINPTPOSUQCfc98amE+aGgP0WlZD6MSF2DkU
Pd4AoJ9Skh9K4Ry6rdvPC1YX/AnNpjR8
=JONd
-----END PGP SIGNATURE-----


More information about the luci mailing list