W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/action ObserveAction.java,1.15,1.16

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 08 Sep 2009 14:42:35 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Ml1tz-0006Eh-8D@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv23957/src/org/w3c/unicorn/action

Modified Files:
	ObserveAction.java 
Log Message:
added missing parameter ucn_text_mime

Index: ObserveAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/ObserveAction.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- ObserveAction.java	8 Sep 2009 14:23:33 -0000	1.15
+++ ObserveAction.java	8 Sep 2009 14:42:33 -0000	1.16
@@ -202,10 +202,11 @@
 					} else {
 						// TODO log "ucn_file not an instance of FileItem ?"
 					}
+				} else if (paramName.equals("text_mime")) {
+					aUnicornCall.addParameter(paramPrefix + "mime", (String) reqParams.get(key));
 				} else {
-					logger.debug("Unknown parameter: " + key + " - " + (String) reqParams.get(key));
-					// TODO Warn that there is an unknown parameter which is added to unicornCall by default
-					aUnicornCall.addParameter(paramName, (String) reqParams.get(key));
+					logger.debug("Unknown parameter: " + key + " - " + (String) reqParams.get(key) +". This parameter is added to aUnicornCall.");
+					aUnicornCall.addParameter(key, (String) reqParams.get(key));
 				}
 			}
 		}
Received on Tuesday, 8 September 2009 14:42:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT