[OpenSIPS-Devel] [OpenSIPS/opensips] 3a566f: rest_client: Explicitly set retcode_pv to 0 on error
Liviu Chircu
noreply at github.com
Thu Mar 14 05:39:46 EDT 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: 3a566f156b1eab5d4e74bc60522fe94a781ee6f2
https://github.com/OpenSIPS/opensips/commit/3a566f156b1eab5d4e74bc60522fe94a781ee6f2
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-03-14 (Thu, 14 Mar 2019)
Changed paths:
M modules/rest_client/rest_client.c
Log Message:
-----------
rest_client: Explicitly set retcode_pv to 0 on error
This avoids any scripting mistakes where:
* the user does not init $var(http_rc) to 0 prior to rest_get()
* rest_get() fails (e.g. connection timeout -- web server is down)
* $var(http_rc) is untouched, yet mistakenly holds 200 from a
previous (successful) run of the same process
(cherry picked from commit 9e842178d6c3d96143f4d1881bb57cdd180153f6)
More information about the Devel
mailing list