@@ -33,8 +33,9 @@ get_access_token(OAuthProvider, Request) ->
3333 Header = [],
3434 Type = ? CONTENT_URLENCODED ,
3535 Body = build_access_token_request_body (Request ),
36- HTTPOptions = get_httpc_option_ssl_options_if_any (OAuthProvider ) ++
37- get_httpc_option_timeout_of_default (Request # access_token_request .timeout ),
36+ HTTPOptions =
37+ map_ssl_options_to_httpc_option (OAuthProvider ) ++
38+ map_timeout_to_httpc_option (Request # access_token_request .timeout ),
3839 Response = http_post (URL , Header , Type , Body , HTTPOptions ,
3940 OAuthProvider # oauth_provider .proxy_options ),
4041 parse_access_token_response (Response ).
@@ -48,7 +49,7 @@ refresh_access_token(OAuthProvider, Request) ->
4849 Type = ? CONTENT_URLENCODED ,
4950 Body = build_refresh_token_request_body (Request ),
5051 HTTPOptions =
51- map_ssl_options_to_httpc_option (OAuthProvider # oauth_porvider .ssl_options ) ++
52+ map_ssl_options_to_httpc_option (OAuthProvider # oauth_provider .ssl_options ) ++
5253 map_timeout_to_httpc_option (Request # refresh_token_request .timeout ),
5354 Response = http_post (URL , Header , Type , Body , HTTPOptions ,
5455 OAuthProvider # oauth_provider .proxy_options ),
0 commit comments