note ignored trailing slashes and query parameters
This commit is contained in:
16
readme.md
16
readme.md
@@ -36,12 +36,14 @@ there is no database, just a text file.
|
|||||||
|
|
||||||
a working [dockerfile](./Dockerfile) and [compose file](./compose.yaml) are provided.
|
a working [dockerfile](./Dockerfile) and [compose file](./compose.yaml) are provided.
|
||||||
|
|
||||||
## a note on case insensitivity
|
## notes
|
||||||
|
|
||||||
|
### case insensitivity
|
||||||
|
|
||||||
all shortlinks are case insenitive,
|
all shortlinks are case insenitive,
|
||||||
due to the lack of [urlencoding/decoding](#a-note-on-urlencoded-characters).
|
due to the lack of [urlencoding/decoding](#urlencoded-characters).
|
||||||
|
|
||||||
## a note on urlencoded characters
|
### urlencoded characters
|
||||||
|
|
||||||
this program does not decode urlencoded strings before checking if strings match.
|
this program does not decode urlencoded strings before checking if strings match.
|
||||||
this is a deliberate choice to keep things as simple as possible.
|
this is a deliberate choice to keep things as simple as possible.
|
||||||
@@ -57,6 +59,14 @@ for example, for the link <http://pls.cx/🤬> the following line is in my urls.
|
|||||||
/%f0%9f%a4%ac https://en.wikipedia.org/wiki/Controversies_of_Nestl%C3%A9
|
/%f0%9f%a4%ac https://en.wikipedia.org/wiki/Controversies_of_Nestl%C3%A9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### trailing slashes are ignored
|
||||||
|
|
||||||
|
trailing slashes are ignored.
|
||||||
|
|
||||||
|
### query parameters are ignored
|
||||||
|
|
||||||
|
anything after a question mark character (`?`) are ignored.
|
||||||
|
|
||||||
## why?
|
## why?
|
||||||
|
|
||||||
all url shorteners i've come across are too complicated:
|
all url shorteners i've come across are too complicated:
|
||||||
|
|||||||
Reference in New Issue
Block a user