Commit 979c0d96 authored by Patrik Beno's avatar Patrik Beno
Browse files

fix: successful session login returns HTTP 201 Created (not 200 OK)

parent fce51bb3
...@@ -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