1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

http: replace escape() with escape_url()

This commit is contained in:
Alexander Medvednikov
2019-07-31 20:53:07 +02:00
parent 550e8cd0cb
commit d3d4ee6b39
5 changed files with 28 additions and 8 deletions

View File

@@ -2,8 +2,8 @@ import http
fn test_escape_unescape() {
original := 'те ст: т\\%'
escaped := http.escape(original)
escaped := http.escape_url(original)
assert escaped == '%D1%82%D0%B5%20%D1%81%D1%82%3A%20%D1%82%5C%25'
unescaped := http.unescape(escaped)
unescaped := http.unescape_url(escaped)
assert unescaped == original
}