Fixed problem with HTTP headers

Signed-off-by: Carlos Escribano <carlos@doofinder.com>