Small bit of cleanup for HttpApi.set_defaults