Skip to content

Commit

Permalink
Removing leading slash from fully qualified URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
avand authored Oct 17, 2017
1 parent 6ac7a98 commit 342dde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jira/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def url
# [07/Jun/2015:15:17:18 +0400] "PUT /jira/rest/api/2/issue/10111 HTTP/1.1" 204 -
def patched_url
result = url
return result if result.start_with?('/')
return result if result.start_with?('/', 'http')
"/#{result}"
end

Expand Down

0 comments on commit 342dde7

Please sign in to comment.