mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add project url onto query string for compile hashing
This commit is contained in:
parent
010bb61baf
commit
ffa04c7b55
2 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,8 @@ module.exports = ClsiManager =
|
|||
url: "#{compilerUrl}/project/#{project_id}/compile"
|
||||
json: req
|
||||
jar: false
|
||||
query:
|
||||
project_id:project_id
|
||||
}, (error, response, body) ->
|
||||
return callback(error) if error?
|
||||
if 200 <= response.statusCode < 300
|
||||
|
|
|
@ -127,6 +127,7 @@ module.exports = CompileController =
|
|||
for h, v of req.headers
|
||||
newHeaders[h] = req.headers[h] if h.match /^(If-|Range)/i
|
||||
options.headers = newHeaders
|
||||
req.query.project_id = project_id
|
||||
proxy = request(options)
|
||||
proxy.pipe(res)
|
||||
proxy.on "error", (error) ->
|
||||
|
|
Loading…
Reference in a new issue