1915842
@@ -57,7 +57,7 @@
output = await _expand_pkg_info(pkg, branch, repotype)
- return web.json_response(output)
+ return web.json_response(output, content_type='application/javascript',)
async def list_branches(request):
Fixes: https://teams.fedoraproject.org/project/community-fire-team/us/14 There is an error when checking the javascript console at: src.fedoraproject.org/rpms/bash
Signed-off-by: Karsten Hopp karsten@redhat.com
This would be correct if it was true, the output is not javascript, it is JSON and thus the current mimetype is correct :)
If we switch to request json instead, we'd get CORS problems. I still wonder if we shouldn't return javascript here, although I don't know how many other apps rely on the current behaviour.
We can do both. Set the CORS header which allow to request JSON and have things work, and add support for JSONP (which is different than request JSON).
I'm going to close this one as we agree that this solution isn't correct :)
Thanks for your work though
Pull-Request has been closed by pingou
Fixes: https://teams.fedoraproject.org/project/community-fire-team/us/14
There is an error when checking the javascript console at: src.fedoraproject.org/rpms/bash
Signed-off-by: Karsten Hopp karsten@redhat.com