fix a bug where http protocol wasn't properly handled by default socket factory