Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
0dc83a90
Commit
0dc83a90
authored
Apr 08, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/SessionApi.java
100644 → 100755
View file @
0dc83a90
...
...
@@ -41,7 +41,7 @@ public class SessionApi extends AbstractApi {
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
));
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment