httr2 icon indicating copy to clipboard operation
httr2 copied to clipboard

Dry run adds space if url contains colon

Open hadley opened this issue 4 months ago • 0 comments

library(httr2)
req_dry_run(request("https://example.com/test:1:2:3"))
#> GET /test: 1:2:3 HTTP/1.1
#> Host: example.com
#> User-Agent: httr2/1.0.5.9000 r-curl/5.2.2 libcurl/8.7.1
#> Accept: */*
#> Accept-Encoding: gzip

Created on 2024-10-18 with reprex v2.1.0

hadley avatar Oct 18 '24 20:10 hadley