jessepeterson/margarita — pull request #8 by gregneagle (2012-04-24 15:28:02+00:00)
Title: Change request type from POST to GET for /list_branches and /products

When first testing out Margarita, I was watching the log (or actually the stdout output of `python margarita.py`) and was a bit concerned that my merely opening "http://localhost:8089" resulted in four POST requests.

Usually POST requests mean data is being modified on the server. After looking at the code, I noticed that you are using POST requests to get the list of branches and the list of products. Normally these would be GET operations, since data is being retrieved, and nothing is being changed.

This commit changes the request type of those two operations from POST to GET. Two very small changes to margarita.py and margarita.js.

Thanks for considering this change!

-Greg