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

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 UTC