You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2013/10/25 08:44:42 UTC
git commit: Fixed incorrect exception content
Updated Branches:
refs/heads/master d2660a4e0 -> 12a499b56
Fixed incorrect exception content
Project: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/commit/12a499b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/tree/12a499b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/diff/12a499b5
Branch: refs/heads/master
Commit: 12a499b56c14c14447fc4cce22a14d6e3786a64a
Parents: d2660a4
Author: Michael Bolz <mi...@apache.org>
Authored: Fri Oct 25 08:41:55 2013 +0200
Committer: Michael Bolz <mi...@apache.org>
Committed: Fri Oct 25 08:41:55 2013 +0200
----------------------------------------------------------------------
.../main/java/org/apache/olingo/odata2/core/rest/RestUtil.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/12a499b5/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/rest/RestUtil.java
----------------------------------------------------------------------
diff --git a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/rest/RestUtil.java b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/rest/RestUtil.java
index e2982f0..fc4ec7c 100644
--- a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/rest/RestUtil.java
+++ b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/rest/RestUtil.java
@@ -90,8 +90,8 @@ public class RestUtil {
} else if (ContentType.isParseable(contentType)) {
return ContentType.create(contentType);
} else {
- throw new ODataUnsupportedMediaTypeException(ODataUnsupportedMediaTypeException.NOT_SUPPORTED_CONTENT_TYPE
- .addContent(HttpHeaders.CONTENT_TYPE, contentType));
+ throw new ODataUnsupportedMediaTypeException(
+ ODataUnsupportedMediaTypeException.NOT_SUPPORTED_CONTENT_TYPE.addContent(contentType));
}
}