Revert "Revert "delete undefined properties from http config params""

This reverts commit f2875d45257f892607df8a460b253cd35fb0900a.