|
|
@ -227,9 +227,12 @@ static size_t resp_hdr_cb(void *ptr, size_t size, size_t nmemb, void *user_data) |
|
|
|
applog(LOG_DEBUG, "HTTP hdr(%s): %s", key, val); |
|
|
|
applog(LOG_DEBUG, "HTTP hdr(%s): %s", key, val); |
|
|
|
|
|
|
|
|
|
|
|
if (!strcasecmp("X-Roll-Ntime", key)) { |
|
|
|
if (!strcasecmp("X-Roll-Ntime", key)) { |
|
|
|
if (opt_debug) |
|
|
|
if (!strcasecmp("Y", val)) { |
|
|
|
applog(LOG_DEBUG, "X-Roll-Ntime found"); |
|
|
|
if (opt_debug) |
|
|
|
hi->has_rolltime = true; |
|
|
|
applog(LOG_DEBUG, "X-Roll-Ntime: Y found"); |
|
|
|
|
|
|
|
hi->has_rolltime = true; |
|
|
|
|
|
|
|
} else if (opt_debug) |
|
|
|
|
|
|
|
applog(LOG_DEBUG, "X-Roll-Ntime: N found"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!strcasecmp("X-Long-Polling", key)) { |
|
|
|
if (!strcasecmp("X-Long-Polling", key)) { |
|
|
|