You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by bb...@apache.org on 2010/11/10 22:43:12 UTC

svn commit: r1033731 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala

Author: bblfish
Date: Wed Nov 10 21:43:12 2010
New Revision: 1033731

URL: http://svn.apache.org/viewvc?rev=1033731&view=rev
Log:
the HEAD accept method was sending the wrong accept header. (+1 code simplification)

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala?rev=1033731&r1=1033730&r2=1033731&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.users/core/src/main/scala/org/apache/clerezza/platform/users/WebIdGraphsService.scala Wed Nov 10 21:43:12 2010
@@ -168,7 +168,7 @@ class WebIdGraphsService() {
 				case hc : HttpURLConnection => {
 						hc.setRequestMethod("HEAD");
 						hc.setInstanceFollowRedirects(false)
-						hc.addRequestProperty("Accept:",  acceptHeader)
+						hc.addRequestProperty("Accept",  acceptHeader)
 						hc.getResponseCode match {
 							case HttpURLConnection.HTTP_SEE_OTHER  => {
 									val location = hc.getHeaderField("Location")