Commit 3c26e88e by 陈雨佳

Code style

parent 1d413aa1
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
...@@ -24,11 +24,11 @@ module AliyunLogRubySdk ...@@ -24,11 +24,11 @@ module AliyunLogRubySdk
body = options[:body] body = options[:body]
if body.present? if body.present?
@headers['Content-Length'] = body.bytesize.to_s @headers['Content-Length'] = body.bytesize.to_s
@headers['Content-MD5'] = calculate_md5(body) @headers['Content-MD5'] = calculate_md5(body)
else else
@headers['Content-Length'] = '0' @headers['Content-Length'] = '0'
@headers['x-log-bodyrawsize'] = '0' @headers['x-log-bodyrawsize'] = '0'
end end
@headers['Authorization'] = authorization @headers['Authorization'] = authorization
......
...@@ -15,7 +15,7 @@ module AliyunLogRubySdk ...@@ -15,7 +15,7 @@ module AliyunLogRubySdk
def delete_log_store(options = {}) def delete_log_store(options = {})
raise NotImplementedError raise NotImplementedError
# delete("/logstores/#{log_store_name}", options) # delete("/logstores/#{log_store_name}", options)
end end
def get_log_store(options = {}) def get_log_store(options = {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment