Skip to content

Commit a870429

Browse files
Added Retry Functionality
1 parent 6dd20b7 commit a870429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contentstack/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def self.send_preview_request(path, q=nil)
130130
preview_host = @live_preview[:host]
131131
params = {
132132
"api_key" => @api_key,
133-
"access_token"=> @access_token,
133+
"authorization" => @live_preview[:management_token],
134134
"user_agent"=> "ruby-sdk/#{Contentstack::VERSION}",
135135
"x-user-agent" => "ruby-sdk/#{Contentstack::VERSION}",
136136
"read_timeout" => @timeout

0 commit comments

Comments
 (0)