summaryrefslogtreecommitdiff
path: root/cups/http-support.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-04-04 20:09:25 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-04-04 20:09:25 +0000
commitd6ae789d922e30aa25c55e01e1523d451be2016b (patch)
tree8476ccd34262b03c12bf786a2b8f01f6cf48ea8c /cups/http-support.c
parent80ca45929e4a37c300b602b7d444a2e8f2263bf6 (diff)
downloadcups-d6ae789d922e30aa25c55e01e1523d451be2016b.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@113 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http-support.c')
-rw-r--r--cups/http-support.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cups/http-support.c b/cups/http-support.c
index ea5e06de1..72bd4bde2 100644
--- a/cups/http-support.c
+++ b/cups/http-support.c
@@ -1,5 +1,5 @@
/*
- * "$Id: http-support.c 5149 2006-02-22 19:10:22Z mike $"
+ * "$Id: http-support.c 5360 2006-03-30 17:02:17Z mike $"
*
* HTTP support routines for the Common UNIX Printing System (CUPS) scheduler.
*
@@ -1057,7 +1057,7 @@ httpSeparateURI(
*port = strtol(uri + 1, (char **)&uri, 10);
- if (*uri != '/')
+ if (*uri != '/' && *uri)
{
*port = 0;
return (HTTP_URI_BAD_PORT);
@@ -1141,6 +1141,10 @@ httpStatus(http_status_t status) /* I - HTTP status code */
return ("Accepted");
case HTTP_NO_CONTENT :
return ("No Content");
+ case HTTP_MOVED_PERMANENTLY :
+ return ("Moved Permanently");
+ case HTTP_SEE_OTHER :
+ return ("See Other");
case HTTP_NOT_MODIFIED :
return ("Not Modified");
case HTTP_BAD_REQUEST :
@@ -1312,5 +1316,5 @@ http_copy_encode(char *dst, /* O - Destination buffer */
/*
- * End of "$Id: http-support.c 5149 2006-02-22 19:10:22Z mike $".
+ * End of "$Id: http-support.c 5360 2006-03-30 17:02:17Z mike $".
*/