]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
print the HTTP response
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 18 Aug 2011 07:59:36 +0000 (09:59 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 18 Aug 2011 07:59:36 +0000 (09:59 +0200)
qcsrc/server/cl_player.qc

index 2b74129eb248534475d5302bbcbef0866ce5b26b..c1a836d9b65b0da88d6aba50b3895b9a6e380a76 100644 (file)
@@ -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: