Commit 0dc83a90 authored by Greg Messner's avatar Greg Messner
Browse files

Merge pull request #2 from patrikbeno/fix-session-login

fix: successful session login returns HTTP 201 Created (not 200 OK)
parents fce51bb3 979c0d96
...@@ -41,7 +41,7 @@ public class SessionApi extends AbstractApi { ...@@ -41,7 +41,7 @@ public class SessionApi extends AbstractApi {
addFormParam(formData, "password", password, true); addFormParam(formData, "password", password, true);
addFormParam(formData, "login", username, false); 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)); return (response.getEntity(Session.class));
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment