6 Commits

Author SHA1 Message Date
fiatjaf
6d8cd55784 fix and use a supposedly much faster library on NormalizeURL(), it's slightly less tolerant with stupidly-formed URLs. 2025-02-25 09:55:19 -03:00
K
c91e7b9765
using testify instead of testing.T methods. (#143) 2024-09-09 07:20:56 -03:00
fiatjaf
92b85c9483 fix localhost trick from 8aaf5b. 2024-07-04 16:29:20 -03:00
P. Reis
8aaf5b8f98
Append 'ws://' prefix if url starts with localhost (#132)
* test: refactor NormalizeURL tests

* feat(NormalizeURL): add 'ws://' prefix if url starts with 'localhost'

* test(NormalizeURL): add 'ws://' prefix if url is localhost
2024-07-04 12:06:24 -03:00
fiatjaf
b2885d57cd
fix blank case on NormalizeURL(). 2022-11-19 07:19:10 -03:00
fiatjaf
0d7a4b258a
fix normalize and add a test. 2022-11-18 14:18:37 -03:00