Content Length for POST Requests

The login process is breaking in case of a lighttpd web-server. (As at Piraten Landesverband Sachsen-Anhalt)

So I patched it, in order to send the right Content-Lenght Header.