Update index.js

minor, but very needed POST-proxy bug fix.