Browse Source

fix

pull/313/head
yystopf 4 years ago
parent
commit
ecfc39565c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/services/trace/client_service.rb

+ 2
- 2
app/services/trace/client_service.rb View File

@@ -3,7 +3,7 @@ class Trace::ClientService < ApplicationService
def post(url, params={})
puts "[trace][POST] request params: #{params}"
conn.post do |req|
req.url = full_url(url)
req.url full_url(url)
req.body = params[:data].to_json
end
end
@@ -12,7 +12,7 @@ class Trace::ClientService < ApplicationService
puts "[trace][POST] request params: #{params}"
puts "[trace][POST] request token: #{token}"
conn.post do |req|
req.url = full_url(url)
req.url full_url(url)
req.body = params[:data].to_json
req.headers['Authorization'] = token
end


Loading…
Cancel
Save