Permalink
Browse files

preserve the leading / in a url resource

  • Loading branch information...
1 parent b967e67 commit 632398336e2bd6eb3b85bfa725d8fbcdbdc8d9b8 @donpdonp donpdonp committed Aug 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/HttpClient/io/HCUrl.io
@@ -43,8 +43,8 @@ HCUrl := Object clone do(
resource := method(
r := urlSeq afterSeq("//") ?afterSeq("/")
- if(r == nil or r == "", r = "/")
- r beforeSeq("#")
+ if(r == nil, r = "")
+ "/"..(r) beforeSeq("#")
)
get := method(

0 comments on commit 6323983

Please sign in to comment.