Skip to content

Commit

Permalink
Merge pull request gitlab4j#2 from patrikbeno/fix-session-login
Browse files Browse the repository at this point in the history
fix: successful session login returns HTTP 201 Created (not 200 OK)
  • Loading branch information
gmessner committed Apr 8, 2015
2 parents fce51bb + 979c0d9 commit 0dc83a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/messners/gitlab/api/SessionApi.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Session login (String username, String email, String password) throws Git
addFormParam(formData, "password", password, true);
addFormParam(formData, "login", username, false);

ClientResponse response = post(ClientResponse.Status.OK, formData, "session");
ClientResponse response = post(ClientResponse.Status.CREATED, formData, "session");
return (response.getEntity(Session.class));
}
}

0 comments on commit 0dc83a9

Please sign in to comment.