From cb6ff770159367fa300e2ea84f8721e62214122b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=B8ndergaard?= Date: Fri, 27 Mar 2015 11:43:09 +0100 Subject: [PATCH] Remove trailing slash on urls --- src/Extensions/IntegrationTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/IntegrationTrait.php b/src/Extensions/IntegrationTrait.php index 6217933..a394097 100644 --- a/src/Extensions/IntegrationTrait.php +++ b/src/Extensions/IntegrationTrait.php @@ -89,7 +89,7 @@ protected function prepareUrl($url) } if (! Str::startsWith($url, 'http')) { - $url = sprintf("%s/%s", $this->baseUrl(), $url); + $url = rtrim(sprintf("%s/%s", $this->baseUrl(), $url), '/'); } return $url;