Skip to content

Commit

Permalink
Merge pull request sumoheavy#263 from avand/master
Browse files Browse the repository at this point in the history
Removing leading slash from fully qualified URLs
  • Loading branch information
SimonMiaou authored Jan 19, 2018
2 parents 1f42e1e + 342dde7 commit fedc80d
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 fedc80d

Please sign in to comment.