Skip to content

Commit

Permalink
preserve the leading / in a url resource
Browse files Browse the repository at this point in the history
  • Loading branch information
donpdonp committed Aug 26, 2013
1 parent b967e67 commit 6323983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/HttpClient/io/HCUrl.io
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6323983

Please sign in to comment.