Fix for issue 22 for get, put, delete, patch, and post

The previous patch only fixed it for get(), although the original issue
was about post(). This fixes is for the rest of the relevant requests.