mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 06:21:04 +00:00
use send build identifier to clsi only for new pdf viewer
old pdf viewer will continue to use the main ouput.pdf file
This commit is contained in:
parent
c29329cb37
commit
c1cde643ef
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ module.exports = CompileController =
|
||||||
# the base request
|
# the base request
|
||||||
options = { url: url, method: req.method, timeout: oneMinute }
|
options = { url: url, method: req.method, timeout: oneMinute }
|
||||||
# if we have a build parameter, pass it through to the clsi
|
# if we have a build parameter, pass it through to the clsi
|
||||||
if req.query?.build?
|
if req.query?.pdfng && req.query?.build? # only for new pdf viewer
|
||||||
options.qs = {}
|
options.qs = {}
|
||||||
options.qs.build = req.query.build
|
options.qs.build = req.query.build
|
||||||
# if we are byte serving pdfs, pass through If-* and Range headers
|
# if we are byte serving pdfs, pass through If-* and Range headers
|
||||||
|
|
Loading…
Reference in a new issue