diff options
author | m0gg | 2006-11-25 16:35:57 +0000 |
---|---|---|
committer | m0gg | 2006-11-25 16:35:57 +0000 |
commit | 48873b11cc7f101bd5f3eb74fedacce40e73dd91 (patch) | |
tree | 7e7380515a35ec975ef7b57d6c38c0e7ec1d4c7b /nanohttp/nanohttp-server.c | |
parent | 5518d08a6c6446e1323bb6f762ef9132a9856c1d (diff) | |
download | csoap-48873b11cc7f101bd5f3eb74fedacce40e73dd91.tar.gz csoap-48873b11cc7f101bd5f3eb74fedacce40e73dd91.tar.bz2 |
Documentation enhancements
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r-- | nanohttp/nanohttp-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index e79e448..c144acf 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.67 2006/11/25 15:06:58 m0gg Exp $ +* $Id: nanohttp-server.c,v 1.68 2006/11/25 16:35:57 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -466,7 +466,7 @@ httpd_send_internal_error(httpd_conn_t * conn, const char *errmsg) snprintf(buflen, 5, "%d", strlen(buffer)); httpd_set_header(conn, HEADER_CONTENT_LENGTH, buflen); - httpd_send_header(conn, 500, "INTERNAL"); + httpd_send_header(conn, 500, HTTP_STATUS_500_REASON_PHRASE); return http_output_stream_write_string(conn->out, buffer); } @@ -719,7 +719,7 @@ httpd_session_main(void *data) httpd_set_header(rconn, HEADER_WWW_AUTHENTICATE, "Basic realm=\"nanoHTTP\""); - httpd_send_header(rconn, 401, "Unauthorized"); + httpd_send_header(rconn, 401, HTTP_STATUS_401_REASON_PHRASE); http_output_stream_write_string(rconn->out, template); done = 1; } |