Skip to content

Commit 1418646

Browse files
committed
Clarify how to access raw CGI params
Resolves #12
1 parent 095e302 commit 1418646

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ npm-debug.log
66
coverage
77

88
#Examples
9-
fileServer.log
9+
*.log

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,16 @@ fcgi.createServer(function (req, res) { /* ... */ }, {
8282
Request URL components
8383
----------------------
8484

85-
The `url` parameter of the request object is taken from the `REQUEST_URI` CGI variable, which is non-standard. If `REQUEST_URI` is missing, the url is built by joining three CGI variables:
85+
The `url` property of the request object is taken from the `REQUEST_URI` CGI variable, which is non-standard. If `REQUEST_URI` is missing, the url is built by joining three CGI variables:
8686

8787
- [`SCRIPT_NAME`](https://tools.ietf.org/html/rfc3875#section-4.1.13)
8888
- [`PATH_INFO`](https://tools.ietf.org/html/rfc3875#section-4.1.5)
8989
- [`QUERY_STRING`](https://tools.ietf.org/html/rfc3875#section-4.1.7)
9090

9191
For more information read [section 4.1](https://tools.ietf.org/html/rfc3875#section-4.1) of the CGI spec.
9292

93+
Raw CGI variables can be accessed through the `params` property of the socket object. More information [here](#the-socket-object).
94+
9395
Authorizer and filter requests
9496
------------------------------
9597

0 commit comments

Comments
 (0)