File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -221,21 +221,21 @@ dsn::error_s http_client::set_method(http_method method)
221
221
222
222
dsn::error_s http_client::set_auth (http_auth_type authType)
223
223
{
224
- switch (authType){
224
+ switch (authType) {
225
225
case http_auth_type::SPNEGO:
226
- RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_NEGOTIATE);
227
- break ;
226
+ RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_NEGOTIATE);
227
+ break ;
228
228
case http_auth_type::DIGEST:
229
- RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
230
- break ;
229
+ RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
230
+ break ;
231
231
case http_auth_type::BASIC:
232
- RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
233
- break ;
232
+ RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
233
+ break ;
234
234
case http_auth_type::NONE:
235
- break ;
235
+ break ;
236
236
default :
237
- RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_ANY);
238
- break ;
237
+ RETURN_IF_SETOPT_NOT_OK (CURLOPT_HTTPAUTH, CURLAUTH_ANY);
238
+ break ;
239
239
}
240
240
241
241
return dsn::error_s::ok ();
Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ enum class http_method
28
28
INVALID = 100 ,
29
29
};
30
30
31
- enum class http_auth_type {
32
- NONE,
33
- BASIC,
34
- DIGEST,
35
- SPNEGO,
31
+ enum class http_auth_type
32
+ {
33
+ NONE,
34
+ BASIC,
35
+ DIGEST,
36
+ SPNEGO,
36
37
};
37
38
38
39
ENUM_BEGIN (http_method, http_method::INVALID)
You can’t perform that action at this time.
0 commit comments