Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Path Normalization #9

@thheller

Description

@thheller

Why are paths normalized? I work with quite a few urls that require a trailing /, every time I try to rewrite an url the trailing slash is removed.

(let [test "http://some.domain.com/some/path/"
      test' (cemerick.url/url test)]
  (prn [:test test])
  (prn [:test' (str test')])
  (= test (str test')))

I don't think anything parts of the url should be touched by default, since it my case all resulting URLs are invalid. :(

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions