ocaml-cohttp icon indicating copy to clipboard operation
ocaml-cohttp copied to clipboard

Default to normalized path for requests

Open dsheets opened this issue 11 years ago • 0 comments

If you have the full and final path, there is no reason why an application should ever receive an unresolved path (i.e. with dot or dot-dot segments). The meaning of URI path resolution is dictated by RFCs and may be done on the client or by any intermediary with only knowledge of the identifier.

This is not to say that the literal URI is not useful! The literal URI (before resolution/normalization) is the only identifier with a universal comparator (byte-for-byte). Cohttp should return a resolved path for the common case but make the raw value available.

dsheets avatar Jul 09 '14 16:07 dsheets