Was checking original request instead of proxied request when determining if I should remove x-forwarded-* headers.