Fix bug for status code 303 location HEAD field is NULL