plugins/api: fix for cross origin requests
authorRunar Petursson <runar@betur.com>
Fri, 15 Feb 2013 02:17:24 +0000 (10:17 +0800)
committerJoar Wandborg <joar@wandborg.se>
Wed, 20 Feb 2013 22:41:36 +0000 (23:41 +0100)
commit9b2cd962af78ce8fbe2bce88d7b9d3a9d01e4aa9
tree4e9484e0557102f2176d3fdf012cbe7015930869
parent155438cdc1da0e00996eebca97cb6581f06811e3
plugins/api: fix for cross origin requests

The response headers were never getting set because of a bug in the 7c552c0
commit.  This expands the loop into a more readable form and results in the
headers getting set.
mediagoblin/plugins/api/tools.py