Handle attributes in requests: Fix for # 258

This commit fixes the attribute issue from # 258. Please review and merge.