summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Trutz2011-03-29 05:20:30 (EDT)
committerChristian Trutz2011-03-29 05:20:30 (EDT)
commit16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e (patch)
tree37b2df63b5ab0cc1b74f8cbcfb89e272750e8765
parent3491e763858c7191f35d4d31edf0ac9a7c485a6c (diff)
downloadegit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.zip
egit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.tar.gz
egit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.tar.bz2
HTTP 201 (HTTP Created) is not handled as errorrefs/changes/57/2957/1
GitHUb issues can be created now. Bug: 340900 Change-Id: Ieac3108163f4e7f1b5fa78b369e3140244dee04b Signed-off-by: Christian Trutz <christian.trutz@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubService.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubService.java
index 2c83210..1cbf791 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubService.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubService.java
@@ -480,6 +480,8 @@ public class GitHubService {
}
if (status != HttpStatus.SC_OK) {
switch (status) {
+ case HttpStatus.SC_CREATED:
+ break;
case HttpStatus.SC_UNAUTHORIZED:
case HttpStatus.SC_FORBIDDEN:
throw new PermissionDeniedException(method.getStatusLine());