Adding a fix to last commit. Besides contacts was working fine, it broke calendar (mostly with the fact of asking twice in a row from curl the HTTP status in 'check_request_error').
Adding a fix to last commit. Besides contacts was working fine, it broke
calendar (mostly with the fact of asking twice in a row from curl the
HTTP status in 'check_request_error').

The fix is to put logic to execute just one call for 'check_request_error'
between each HTTP request.

Now libgcal is running all the utest fine again. I was only capable to
track this regression thanks for the current good unit test coverage.

Adenilson/libgcal,mback2k/libgcal,Adenilson/libgcal