[freenet-cvs] r11219 - trunk/freenet/src/freenet/clients/http

toad at freenetproject.org toad at freenetproject.org
Mon Dec 4 14:29:00 UTC 2006


Author: toad
Date: 2006-12-04 14:28:58 +0000 (Mon, 04 Dec 2006)
New Revision: 11219

Modified:
   trunk/freenet/src/freenet/clients/http/HTTPRequest.java
Log:
Logging

Modified: trunk/freenet/src/freenet/clients/http/HTTPRequest.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequest.java	2006-12-04 14:18:01 UTC (rev 11218)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequest.java	2006-12-04 14:28:58 UTC (rev 11219)
@@ -431,6 +431,8 @@
 		if(data == null) return;
 		String ctype = (String) this.headers.get("content-type");
 		if (ctype == null) return;
+		if(Logger.shouldLog(Logger.MINOR, this))
+			Logger.minor(this, "Uploaded content-type: "+ctype);
 		String[] ctypeparts = ctype.split(";");
 		if(ctypeparts[0].equalsIgnoreCase("application/x-www-form-urlencoded")) {
 			// Completely different encoding, but easy to handle




More information about the cvs mailing list