Send correct HTTP Header (Content-Type) when the parameters is nil

Send correct HTTP Header (Content-Type) when the parameters is nil