Revision 507372bb tests/nvtest1/nvtest1.c

View differences:

tests/nvtest1/nvtest1.c
274 274
						evhttp_send_reply(req,305,"REQUEST PROCESSING FAILED",NULL);
275 275
						goto finally;
276 276
					}
277
					evbuffer_add_printf(req->output_buffer,"<html><head><title>GRAPES - Registration</title></head>"
277
					evbuffer_add_printf(req->output_buffer,"<html><head><title>NAPA - Registration</title></head>"
278 278
						"<body><h3>Successfully registered to %s (delay: %f)</h3></body></html>", url, delay);
279 279
				}
280 280
				else {
281 281
					int fd = open(REGFORM_FILE_NAME,O_RDONLY);
282 282
					if(fd > 0) evbuffer_add_file(req->output_buffer, fd, 0, 10000);
283
					else evbuffer_add_printf(req->output_buffer,"<html><head><title>GRAPES - Error</title></head>"
283
					else evbuffer_add_printf(req->output_buffer,"<html><head><title>NAPA - Error</title></head>"
284 284
						"<body><h3>Error!! Cannot load file %s</h3></body></html>", REGFORM_FILE_NAME);
285 285
				}
286 286
				evhttp_send_reply(req,200,"OK",NULL);

Also available in: Unified diff