Fix HTTP prefs logging bug and add a few comments