mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
add project url onto query string for compile hashing
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user