Fix case bug in requests with objects.