Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 47a3f87

Browse files
ThanksSirAlexJacksonTian
authored andcommitted
修复http方法typo
1 parent e59acba commit 47a3f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/aliyunsdkcore/roa_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def get(uri: '', headers: {}, params: {}, options: {})
7070
end
7171

7272
def post(uri: '', headers: {}, params: {}, body: {}, options: {})
73-
request(method: :get, uri: uri, params: params, body: body, headers: headers, options: options)
73+
request(method: :post, uri: uri, params: params, body: body, headers: headers, options: options)
7474
end
7575

7676
def put(uri: '', headers: {}, params: {}, body: {}, options: {})
77-
request(method: :get, uri: uri, params: params, body: body, headers: headers, options: options)
77+
request(method: :put, uri: uri, params: params, body: body, headers: headers, options: options)
7878
end
7979

8080
def delete(uri: '', headers: {}, params: {}, options: {})
81-
request(method: :get, uri: uri, params: params, body: {}, headers: headers, options: options)
81+
request(method: :delete, uri: uri, params: params, body: {}, headers: headers, options: options)
8282
end
8383

8484
def default_headers

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /