Merge pull request #1673 from coreos-inc/build-logs-requires-cors

Add missing requires_cors to build log archive URL
This commit is contained in:
josephschorr 2016-08-02 14:50:19 -04:00 committed by GitHub
commit 7ca0ba882c

View file

@ -377,7 +377,7 @@ class RepositoryBuildLogs(RepositoryParamResource):
# If the logs have been archived, just return a URL of the completed archive
if build.logs_archived:
return {
'logs_url': log_archive.get_file_url(build.uuid)
'logs_url': log_archive.get_file_url(build.uuid, requires_cors=True)
}
start = int(request.args.get('start', 0))