moved debug flag so it works for both POST&GET methods
Merge pull request #129 from LorenzoBoccaccia/project-maintenance

Moved debug flag so it works for both POST&GET methods