Update main.py

Fixed POST support