mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
Use 422 status when rejecting Git LFS request
This commit is contained in:
+1
-1
@@ -989,7 +989,7 @@ public class WLGitBridgeIntegrationTest {
|
||||
String urlBase = "http://127.0.0.1:" + gitBridgePort;
|
||||
HttpPost gitLfsRequest = new HttpPost(urlBase+"/5f2419407929eb0026641967.git/info/lfs/objects/batch");
|
||||
HttpResponse gitLfsResponse = client.execute(gitLfsRequest);
|
||||
assertEquals(406, gitLfsResponse.getStatusLine().getStatusCode());
|
||||
assertEquals(422, gitLfsResponse.getStatusLine().getStatusCode());
|
||||
HttpEntity entity = gitLfsResponse.getEntity();
|
||||
String responseString = EntityUtils.toString(entity, "UTF-8");
|
||||
assertTrue(responseString.contains("Git LFS is not supported on Overleaf"));
|
||||
|
||||
Reference in New Issue
Block a user