Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Trutz2011-03-29 09:20:30 +0000
committerChristian Trutz2011-03-29 09:20:30 +0000
commit16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e (patch)
tree37b2df63b5ab0cc1b74f8cbcfb89e272750e8765
parent3491e763858c7191f35d4d31edf0ac9a7c485a6c (diff)
downloadegit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.tar.gz
egit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.tar.xz
egit-github-16c98e34541d6a833ee7cd29ae24eea7f9ed4d2e.zip
HTTP 201 (HTTP Created) is not handled as error
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 2c832100..1cbf791c 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());

Back to the top