mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Revert "Revert test changes for proxied headers when requesting pdfs from clsi"
This reverts commit ab31d2c3fdc00a38f6444248011a3871b83dbec2.
This commit is contained in:
parent
0561adde4b
commit
d3b38c8dc2
1 changed files with 16 additions and 1 deletions
|
@ -137,7 +137,12 @@ describe "CompileController", ->
|
|||
statusCode: 204
|
||||
headers: { "mock": "header" }
|
||||
@req.method = "mock-method"
|
||||
|
||||
@req.headers = {
|
||||
'Mock': 'Headers',
|
||||
'Range': 'should be passed - Range'
|
||||
'If-Range': 'should be passed - If-Range'
|
||||
'If-Modified-Since': 'should be passed - If-Modified-Since'
|
||||
}
|
||||
|
||||
describe "user with standard priority", ->
|
||||
|
||||
|
@ -152,6 +157,11 @@ describe "CompileController", ->
|
|||
method: @req.method
|
||||
url: "#{@settings.apis.clsi.url}#{@url}",
|
||||
timeout: 60 * 1000
|
||||
headers: {
|
||||
'Range': 'should be passed - Range'
|
||||
'If-Range': 'should be passed - If-Range'
|
||||
'If-Modified-Since': 'should be passed - If-Modified-Since'
|
||||
}
|
||||
)
|
||||
.should.equal true
|
||||
|
||||
|
@ -175,6 +185,11 @@ describe "CompileController", ->
|
|||
method: @req.method
|
||||
url: "#{@settings.apis.clsi_priority.url}#{@url}",
|
||||
timeout: 60 * 1000
|
||||
headers: {
|
||||
'Range': 'should be passed - Range'
|
||||
'If-Range': 'should be passed - If-Range'
|
||||
'If-Modified-Since': 'should be passed - If-Modified-Since'
|
||||
}
|
||||
)
|
||||
.should.equal true
|
||||
|
||||
|
|
Loading…
Reference in a new issue