From: Rudolf Polzer Date: Thu, 18 Aug 2011 07:59:36 +0000 (+0200) Subject: print the HTTP response X-Git-Tag: xonotic-v0.5.0~111^2~4^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50a39caa81a635eb6f78ff78bc47f5cbd6a9515a;p=xonotic%2Fxonotic-data.pk3dir.git print the HTTP response --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 2b74129eb..c1a836d9b 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -18,7 +18,7 @@ void WeaponStats_ready(entity fh, entity pass, float status) { float i, j, n, ibot, jbot, idx; vector v; - string prefix; + string prefix, s; switch(status) { case URL_READY_CANWRITE: @@ -48,7 +48,10 @@ void WeaponStats_ready(entity fh, entity pass, float status) weaponstats_buffer = -1; break; case URL_READY_CANREAD: - print("Got response from weapon stats server\n"); + print("Got response from weapon stats server:\n"); + while((s = url_fgets(fh))) + print(" ", s, "\n"); + print("End of response.\n"); url_fclose(fh, WeaponStats_ready, world); break; case URL_READY_CLOSED: