Fixed a bug for PUT reqs.