Don't crash if the content-type wasn't set, support SSL