aboutsummaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-15 16:39:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-15 16:39:15 +0000
commit0251563c981c2486d240ccf858cbbcf2a3ac1315 (patch)
tree407a3f098696f73955867007002b96b802e90930 /tests/server/sws.c
parent72673a351bd0cadeb7735c853fc542df1a56023e (diff)
report pid back in the WE ROOLZ message
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 80a5a5546..8dd050efa 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -88,10 +88,6 @@ static const char *docbadconnect =
"HTTP/1.1 501 Forbidden you fool\r\n"
"\r\n";
-/* sent as reply to the magic to find out if we are the test server or
- not */
-static const char *docfriends = "HTTP/1.1 200 Mighty fine indeed\r\n\r\nWE ROOLZ\r\n";
-
/* send back this on 404 file not found */
static const char *doc404 = "HTTP/1.1 404 Not Found\n"
"Server: " VERSION "\n"
@@ -332,6 +328,8 @@ static int send_doc(int sock, int doc, int part_no)
int cmdsize=0;
FILE *dump;
+ static char weare[256];
+
char filename[256];
char partbuf[80]="data";
@@ -340,7 +338,9 @@ static int send_doc(int sock, int doc, int part_no)
case DOCNUMBER_WERULEZ:
/* we got a "friends?" question, reply back that we sure are */
logmsg("Identifying ourselves as friends");
- buffer = docfriends;
+ sprintf(weare, "HTTP/1.1 200 OK\r\n\r\nWE ROOLZ: %d\r\n",
+ getpid());
+ buffer = weare;
break;
case DOCNUMBER_INTERNAL:
logmsg("Bailing out due to internal error");