changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/rc-httpd/rc-httpd

revision 4342: 74455da2d86a
parent 2357: bb9d74a55b65
child 4525: d28603683f3c
     1.1--- a/rc/bin/rc-httpd/rc-httpd
     1.2+++ b/rc/bin/rc-httpd/rc-httpd
     1.3@@ -54,9 +54,13 @@ while(~ $"done false){
     1.4 		HTTP_USER_AGENT=`{echo $line | sed 's;[^:]+:[ 	]+;;'}
     1.5 	case content-length:
     1.6 		CONTENT_LENGTH=$line(2)
     1.7+	case content-type:
     1.8+		CONTENT_TYPE=$line(2)
     1.9 	case cookie:
    1.10 		cookie=`{echo $line | sed 's;^[^:]+:[ 	]*;;'}
    1.11 		HTTP_COOKIE=$"HTTP_COOKIE^$"cookie^'; '
    1.12+	case authorization:
    1.13+		REMOTE_USER=`{auth/httpauth $line(3)}
    1.14 	}
    1.15 }
    1.16 if(~ $REQUEST_URI http://*){