lib/zold/wts.rb in zold-ruby-sdk-0.2.1 vs lib/zold/wts.rb in zold-ruby-sdk-0.2.2
- old
+ new
@@ -208,9 +208,10 @@
'User-Agent': 'zold-ruby-sdk'
}
end
def job_of(http)
+ raise 'There are no headers in the response' if http.headers.nil?
job = http.headers['X-Zold-Job']
raise 'Job ID is not returned, for some reason' if job.nil?
job
end