HTTP put request error

This is fixed by this commit made on Sept 17:

https://github.com/discourse/discourse/commit/f3214889dcf4391e397b6f81863182cf678482e5

which is not available on Discourse stable yet.