Fix x-forwarded-for resolution in http logging