parent
bcbcf3b559
commit
0f7bc568e4
|
@ -700,13 +700,14 @@ def cgi_app(environ, start_response):
|
||||||
|
|
||||||
url, cache = Init(url, os.getcwd() + '/cache', options)
|
url, cache = Init(url, os.getcwd() + '/cache', options)
|
||||||
RSS = Fetch(url, cache, options)
|
RSS = Fetch(url, cache, options)
|
||||||
RSS = Gather(RSS, url, cache, options)
|
|
||||||
|
|
||||||
if headers['content-type'] == 'text/xml':
|
if headers['content-type'] == 'text/xml':
|
||||||
headers['content-type'] = RSS.mimetype
|
headers['content-type'] = RSS.mimetype
|
||||||
|
|
||||||
start_response(headers['status'], headers.items())
|
start_response(headers['status'], headers.items())
|
||||||
|
|
||||||
|
RSS = Gather(RSS, url, cache, options)
|
||||||
|
|
||||||
if not DEBUG and not options.silent:
|
if not DEBUG and not options.silent:
|
||||||
return After(RSS, options)
|
return After(RSS, options)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue