Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/raven/transports/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HTTP < Transport

def send(auth_header, data, options = {})
project_id = self.configuration[:project_id]
path = self.configuration[:path].gsub('/sentry', '') + "/"
path = self.configuration[:path] + "/"

response = conn.post "#{path}api/#{project_id}/store/" do |req|
req.headers['Content-Type'] = options[:content_type]
Expand Down
6 changes: 3 additions & 3 deletions spec/raven/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
example "posting an exception" do

stubs = Faraday::Adapter::Test::Stubs.new do |stub|
stub.post('/api/42/store/') { [200, {}, 'ok'] }
stub.post('sentry/api/42/store/') { [200, {}, 'ok'] }
end

Raven.configure do |config|
Expand All @@ -24,7 +24,7 @@
example "posting an exception to a prefixed DSN" do

stubs = Faraday::Adapter::Test::Stubs.new do |stub|
stub.post('/prefix/api/42/store/') { [200, {}, 'ok'] }
stub.post('/prefix/sentry/api/42/store/') { [200, {}, 'ok'] }
end

Raven.configure do |config|
Expand All @@ -42,7 +42,7 @@
example "hitting quota limit shouldn't swallow exception" do

stubs = Faraday::Adapter::Test::Stubs.new do |stub|
stub.post('/api/42/store/') { [403, {}, 'Creation of this event was blocked'] }
stub.post('sentry/api/42/store/') { [403, {}, 'Creation of this event was blocked'] }
end

Raven.configure do |config|
Expand Down