Skip to content

Commit 5ea6370

Browse files
author
Nuno Pato
committed
Fix url prefix
1 parent f2365ba commit 5ea6370

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/bitbucket_rest_api/repos/statuses.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create(user_name, repo_name, sha, state, key, url, options = {})
4545
end
4646

4747
faraday_options = { headers: { "Content-Type" => "application/json" } }
48-
post_request(url)
48+
post_request(url, build_options, faraday_options)
4949
end
5050
end # Repos::Statuses
5151
end # BitBucket

lib/bitbucket_rest_api/request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def request(method, path, params, options={})
8080
def path_prefix(path, conn)
8181
if path.include?('/ssh') && BitBucket.options[:bitbucket_server]
8282
'/rest/keys'
83-
elsif path.include('/build-status') && BitBucket.options[:bitbucket_server]
84-
'/rest/build-status'
83+
elsif path.include?('/build-status') && BitBucket.options[:bitbucket_server]
84+
''
8585
else
8686
conn.path_prefix
8787
end

0 commit comments

Comments
 (0)