From 342dde7ddc13ab58173ecbf2d72f1602ca702baa Mon Sep 17 00:00:00 2001 From: Avand Amiri Date: Tue, 17 Oct 2017 16:49:00 -0700 Subject: [PATCH] Removing leading slash from fully qualified URLs --- lib/jira/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jira/base.rb b/lib/jira/base.rb index 4ea4958b..5353d1bb 100644 --- a/lib/jira/base.rb +++ b/lib/jira/base.rb @@ -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