Permalink
Browse files

[fix] web_client: try_get_async now differs from try_get_with_options…

…_async
  • Loading branch information...
1 parent 57005c2 commit 0171871a0a30f5a0e5b004e68fa760bfcd72cca0 Nicolas Glondu committed Nov 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 stdlib/core/web/client/web_client.opa
View
4 stdlib/core/web/client/web_client.opa
@@ -262,8 +262,8 @@ WebClient =
* Usage suggestion: use [try_get_async] and [try_get_with_options_async] when your code is very concurrent
* and you intend to send messages on completion of requests.
*/
- try_get_async(location:Uri.uri, options:WebClient.Get.options, on_result: WebClient.result(string) -> void): void =
- try_get_with_options_async(location, options, on_result)
+ try_get_async(location:Uri.uri, on_result: WebClient.result(string) -> void): void =
+ try_get_with_options_async(location, default_options, on_result)
try_get_with_options_async(location:Uri.uri, options:WebClient.Get.options, on_result: WebClient.result(string) -> void): void =
on_success(x) = on_result({success = x})
on_failure(x) = on_result({failure = x})

0 comments on commit 0171871

Please sign in to comment.