Open C-Entropy opened 3 years ago
I think this will be consistent with behaviour of browsers.
http://www.ics.uci.edu/
is a different URI for which the path is /
. Is there a use case for which we would still want to return a NIL path?
I have not seen this kind of example yet. But return NIL does cause error in both woo and wookie, see it here.
(Since firefox will just send http://www.ics.uci.edu
instead of http://www.ics.uci.edu/
and I believe most people will just simply type http://www.ics.uci.edu
)
More research in other case may be needed.
Maybe there are some cases that should return NIL, but I think in most case "/" should be returned when request like http://www.ics.uci.edu
.
Would a empty string ("") be an option?
I think so, but it may need to be specified out specially. So the developer who use quri know this. And then wookie and woo and weblocks and others may need to change some code too. Maybe better check the source code for why ever a NIL is returned
What do you mean with "specified out"? Mentioned in a ChangeLog?
And documention too. It's very likely that pepole may not be aware of that(like me).
Maybe better check the source code for why ever a NIL is returned.
@C-Entropy @svetlyak40wt Please see #45.
Sorry I can't tell about the code itself much.(I'm just a new hand:) ). But I'm happy to help with opening issue at wookie once you make progress.