Browse Source

Merge pull request #4 from overleaf/handle-401

Handle 401 errors as ptorected projects
Marc Egea i Sala 11 years ago
parent
commit
dcaf2d0fa6

+ 1 - 0
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java

@@ -65,6 +65,7 @@ public class GetDocResult extends Result {
         JsonObject jsonObject = json.getAsJsonObject();
         if (jsonObject.has("status")) {
             switch (jsonObject.get("status").getAsInt()) {
+            case 401:
             case 403:
                 exception = new ProtectedProjectException();
                 break;