Fixes for content_type detection for rest-client and Grape request detection