fixes for nginx POST