aboutsummaryrefslogtreecommitdiff
path: root/uri_test.go
AgeCommit message (Collapse)AuthorFilesLines
2024-03-02test: remove `//nolint:govet` comments (#1729)Gravatar Oleksandr Redko 1-4/+4
2024-01-09Move Fuzz tests into their own fileGravatar Erik Dubbelboer 1-19/+0
This is required for https://github.com/google/oss-fuzz/pull/11453
2024-01-06test: migrate remaining fuzzit tests to go 1.18 fuzzing (#1687)Gravatar nickajacks1 1-0/+19
2023-06-13Enable gofumpt linter; format code `gofumpt -w .` (#1576)v1.48.0Gravatar Oleksandr Redko 1-2/+2
2023-02-10Rename unexported funcs, vars to match common Go (#1488)Gravatar Oleksandr Redko 1-5/+5
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms and https://go.dev/doc/effective_go#mixed-caps
2023-02-09doc,test: correct typos (#1484)Gravatar Oleksandr Redko 1-3/+3
2022-04-01Use %v for errors and %q for strings (#1262)v1.35.0Gravatar Erik Dubbelboer 1-1/+1
Mostly in tests.
2022-03-04Fix windows tests (#1235)Gravatar Erik Dubbelboer 1-1/+10
* Fix windows tests Just ignore /../ tests on windows until we have proper suppor. * Remove useless test code This code was basically just testing if tcp works. To test if SO_REUSEPORT works we only have to try to listen on the same addr:port twice. * Fix test
2022-02-09uri_test.go use example.com for clearness (#1212)Gravatar Sergey Ponomarev 1-56/+61
* uri_test.go replace xxx.com with example.com * uri_test.go replace foobar.com with example.com * uri_test.go use example.com inside of testURIUpdate() * uri_test.go use example.com instead of google.com * uri_test.go use example.com instead of google.com * uri_test.go testURIUpdate() host with port
2021-11-08uri: isHttps() and isHttp() (#1150)Gravatar Sergey Ponomarev 1-0/+23
* uri: isHttps() and isHttp() Use them instead of manual schema comparison * uri: use SetSchemeBytes()
2021-10-03URI.Parse should never change it's inputGravatar Erik Dubbelboer 1-0/+20
Decode the URI in place, but use the bytes of the URI instead of the bytes of the input parameter.
2021-10-01Properly parse URIGravatar Erik Dubbelboer 1-0/+23
Use URI parse code based on net/uri to validate hostnames.
2021-06-18Lower go test timeGravatar Erik Dubbelboer 1-0/+6
2021-06-18Run go test on github actions (#1047)Gravatar Erik Dubbelboer 1-1/+1
* Run go test on github actions travis-ci.org has stopped. See also: https://github.com/curl/curl/issues/7150 Downside: github actions don't support ppc64le * Run less * delete .travis.yml * Remove travis + minor lint fixes
2021-02-16Added Protocol() as a replacement of hardcoded strHTTP11 (#969)Gravatar Darío 1-1/+1
* Added Protocol() as a replacement of hardcoded strHTTP11 * Applied review changes * Modify h.proto in parseFirstLine
2021-01-02Use QueryString while constructing RequestURI instead of QueryArgs if ↵v1.19.0Gravatar anshul-jain-aws 1-0/+12
parsedQueryArgs is set to false (#937)
2020-08-21Git commit fix URI parse for urls like host.dm?some/path/to/file (#866)Gravatar Vitali Pikulik 1-0/+4
2020-07-17Update linting (#851)Gravatar Erik Dubbelboer 1-7/+7
2020-04-25Don't allow ASCII control character in URLs (#790)Gravatar Erik Dubbelboer 1-0/+3
* Don't allow ASCII control character in URLs * Add tests
2020-02-28Don't send the fragment/hash/# part of a URL to the serverGravatar Erik Dubbelboer 1-8/+11
Fixes https://github.com/valyala/fasthttp/issues/748
2019-12-01Fix parsing relative URLs starting with // (#702)Gravatar Erik Dubbelboer 1-0/+6
* Fix parsing relative URLs starting with // * Improve test
2019-11-16Run golangci-lint using a Github ActionGravatar Erik Dubbelboer 1-4/+4
2019-10-16Speed up testing by running tests in parallelGravatar Erik Dubbelboer 1-0/+20
2019-09-18Added option to disable path normalization (#649)Gravatar Daniel Firsht 1-0/+10
2019-02-17add tests for copyto (#545)v1.2.0Gravatar xuecai 1-0/+17
* add tests for copyto * add HeaderCopy Test reflect.DeepEqual
2018-09-05Fix appendQuotedPath to include all allowed charactersGravatar Erik Dubbelboer 1-1/+1
2017-11-08Parse bogus uris with missing slash after hostname like ↵Gravatar Aliaksandr Valialkin 1-0/+3
`http://foobar.com?baz=123`, since such uris occur in real life :(
2017-01-09Updated tests and documentation for URI.Parse and URI.Update* regarding uris ↵Gravatar Aliaksandr Valialkin 1-7/+15
without scheme
2016-08-17Allow redirecting to urls without scheme, i.e. //google.com/foo.barGravatar Aliaksandr Valialkin 1-0/+3
2016-06-07Properly handle hashes and single dots in URI.Update (see ↵Gravatar Aliaksandr Valialkin 1-0/+4
https://github.com/kataras/iris/issues/173)
2016-02-19Properly copy query arguments in URI.CopyToGravatar Aliaksandr Valialkin 1-0/+14
2016-02-19Added AcquireArgs and ReleaseArgs helper functionsGravatar Aliaksandr Valialkin 1-1/+1
2016-02-17Added AcquireURI and ReleaseURIGravatar Aliaksandr Valialkin 1-7/+48
2016-02-09Issue #48: added more tests and code prettifying after PR #50Gravatar Aliaksandr Valialkin 1-1/+6
2016-02-09Fix fragment parsing so it won't get url encoded if there is no query in ↵Gravatar Kristoffer Peterhänsel 1-0/+1
front of it
2016-01-04Added URI.LastPathSegment helper functionGravatar Aliaksandr Valialkin 1-0/+17
2015-12-23test URI.Update() with path containing non-ASCII charsGravatar Aliaksandr Valialkin 1-0/+1
2015-12-22Do not escape '-' and '_' in url path and query argsGravatar Aliaksandr Valialkin 1-1/+1
2015-12-22Do not escape the most frequently used chars in uri path such as ':~=,'Gravatar Aliaksandr Valialkin 1-0/+15
2015-12-03Remove '/./' parts from pathGravatar Aliaksandr Valialkin 1-0/+5
2015-11-28Added Update and CopyTo methods to URIGravatar Aliaksandr Valialkin 1-1/+27
2015-11-22Access URI members via accessorsGravatar Aliaksandr Valialkin 1-16/+16
2015-11-19Optimize request uri parsing - defer Host header readingGravatar Aliaksandr Valialkin 1-3/+3
2015-11-15Hide URI.QueryArgs behind accessor, which automatically parses query argsGravatar Aliaksandr Valialkin 1-1/+1
2015-11-15Hide Request.URI and Request.PostArgs behind accessors, which automatically ↵Gravatar Aliaksandr Valialkin 1-22/+17
call parse URI and PostArgs on first access
2015-10-27Use QueryString contents if QueryArgs is empty in URI.AppendBytesGravatar Aliaksandr Valialkin 1-0/+9
2015-10-22Added URI path normalization, i.e. //foo//../bar converts to /foo/barGravatar Aliaksandr Valialkin 1-0/+49
2015-10-19initial commitGravatar Aliaksandr Valialkin 1-0/+129