summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
32cacde)
svn path=/trunk/; revision=68
HTTP_HEADERS="$(sed -u '/^\r\?$/q')"
HTTP_CONTENT_LENGTH="$(printf %s "$HTTP_HEADERS" |grep -oiE '^Content-Length: [0-9]+')"
HTTP_HEADERS="$(sed -u '/^\r\?$/q')"
HTTP_CONTENT_LENGTH="$(printf %s "$HTTP_HEADERS" |grep -oiE '^Content-Length: [0-9]+')"
- HTTP_CONTENT_LENGTH="${HTTP_CONTENT_LENGTH%%: *}"
+ HTTP_CONTENT_LENGTH="${HTTP_CONTENT_LENGTH##*: }"
HTTP_COOKIE="$(printf %s "$HTTP_HEADERS" |grep -oiE '^Cookie: [^\r]+')"
HTTP_COOKIE="$(printf %s "$HTTP_HEADERS" |grep -oiE '^Cookie: [^\r]+')"
- HTTP_COOKIE="${HTTP_COOKIE%%: *}"
+ HTTP_COOKIE="${HTTP_COOKIE##*: }"
export REMOTE_ADDR SERVER_NAME SERVER_PORT REQUEST_METHOD REQUEST_URI SERVER_PROTOCOL \
PATH_INFO QUERY_STRING HTTP_CONTENT_LENGTH HTTP_COOKIE
export REMOTE_ADDR SERVER_NAME SERVER_PORT REQUEST_METHOD REQUEST_URI SERVER_PROTOCOL \
PATH_INFO QUERY_STRING HTTP_CONTENT_LENGTH HTTP_COOKIE