Changeset b75671d for lib/oauth2.c


Ignore:
Timestamp:
2015-06-17T22:47:26Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
b441614
Parents:
d832164 (diff), 2f99f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth2.c

    rd832164 rb75671d  
    138138        struct oauth2_access_token_data *cb_data = req->data;
    139139        char *atoken = NULL, *rtoken = NULL, *error = NULL;
    140         char *content_type;
     140        char *content_type = NULL;
    141141
    142         if (getenv("BITLBEE_DEBUG") && req->reply_body) {
     142        if (req->status_code <= 0 && !req->reply_body) {
     143                cb_data->func(cb_data->data, NULL, NULL, req->status_string);
     144                g_free(cb_data);
     145                return;
     146        }
     147
     148        if (getenv("BITLBEE_DEBUG")) {
    143149                printf("%s\n", req->reply_body);
    144150        }
Note: See TracChangeset for help on using the changeset viewer.