- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 16 Sep 2009 16:45:41 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv20749/src/org/w3c/unicorn/action
Modified Files:
ObserveAction.java
Log Message:
removed https error message. Unicorn now supports https protocol
Index: ObserveAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/ObserveAction.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- ObserveAction.java 15 Sep 2009 15:14:02 -0000 1.31
+++ ObserveAction.java 16 Sep 2009 16:45:38 -0000 1.32
@@ -161,11 +161,11 @@
} else if (paramName.equals("uri")) {
logger.trace("Uri parameter: " + key + " - " + (String) reqParams.get(key));
String uri = (String) reqParams.get(key);
- if (uri.startsWith("https://")) {
+ /*if (uri.startsWith("https://")) {
Message mess = new Message(Message.Level.ERROR, "Unicorn does not support https protocol for the moment.", null);
createError(req, resp, reqParams, mess, mapOfSpecificParameter, mapOfOutputParameter);
return;
- }
+ }*/
// To allow other protocols change (https?) in (https?|ftp|rmtp) for example
Pattern urlPattern = Pattern.compile("^(https?)://([A-Z0-9][A-Z0-9_-]*)(\\.[A-Z0-9][A-Z0-9_-]*)*(:(\\d+))?([/#]\\p{ASCII}*)?", Pattern.CASE_INSENSITIVE);
if (!urlPattern.matcher(uri).matches()) {
Received on Wednesday, 16 September 2009 16:45:54 UTC