aboutsummaryrefslogtreecommitdiff
path: root/uri_windows_test.go
diff options
context:
space:
mode:
authorGravatar Aleksandr Razumov <ar@cydev.ru> 2016-05-04 10:07:11 +0300
committerGravatar Aleksandr Razumov <ar@cydev.ru> 2016-05-04 10:07:11 +0300
commit5e1bdcae2d7909e455675a34a157119a30765672 (patch)
tree3fd32ad5f3e5c9fa8d64bb8622637adcb948cf50 /uri_windows_test.go
parentIssue #83: Added ResponseHeader.DelClientCookie for instructing the client fo... (diff)
downloadfasthttp-5e1bdcae2d7909e455675a34a157119a30765672.tar.gz
fasthttp-5e1bdcae2d7909e455675a34a157119a30765672.tar.bz2
fasthttp-5e1bdcae2d7909e455675a34a157119a30765672.zip
Issue #86: Fixed leading slash on Windows
Diffstat (limited to 'uri_windows_test.go')
-rw-r--r--uri_windows_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/uri_windows_test.go b/uri_windows_test.go
new file mode 100644
index 0000000..61d1a2c
--- /dev/null
+++ b/uri_windows_test.go
@@ -0,0 +1,12 @@
+// +build windows
+
+package fasthttp
+
+import "testing"
+
+func TestURIPathNormalizeIssue86(t *testing.T) {
+ // see https://github.com/valyala/fasthttp/issues/86
+ var u URI
+
+ testURIPathNormalize(t, &u, `C:\a\b\c\fs.go`, `C:\a\b\c\fs.go`)
+}