Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
2de49500
Commit
2de49500
authored
Feb 13, 2018
by
Matthew Holt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://github.com/mholt/caddy
parents
d2964069
6a9aea04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
caddyhttp/fastcgi/fastcgi.go
caddyhttp/fastcgi/fastcgi.go
+1
-1
caddyhttp/fastcgi/fcgiclient.go
caddyhttp/fastcgi/fcgiclient.go
+3
-3
caddyhttp/fastcgi/fcgiclient_test.go
caddyhttp/fastcgi/fcgiclient_test.go
+2
-1
No files found.
caddyhttp/fastcgi/fastcgi.go
View file @
2de49500
...
...
@@ -148,7 +148,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
case
"HEAD"
:
resp
,
err
=
fcgiBackend
.
Head
(
env
)
case
"GET"
:
resp
,
err
=
fcgiBackend
.
Get
(
env
)
resp
,
err
=
fcgiBackend
.
Get
(
env
,
r
.
Body
,
contentLength
)
case
"OPTIONS"
:
resp
,
err
=
fcgiBackend
.
Options
(
env
)
default
:
...
...
caddyhttp/fastcgi/fcgiclient.go
View file @
2de49500
...
...
@@ -460,12 +460,12 @@ func (c *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.Res
}
// Get issues a GET request to the fcgi responder.
func
(
c
*
FCGIClient
)
Get
(
p
map
[
string
]
string
)
(
resp
*
http
.
Response
,
err
error
)
{
func
(
c
*
FCGIClient
)
Get
(
p
map
[
string
]
string
,
body
io
.
Reader
,
l
int64
)
(
resp
*
http
.
Response
,
err
error
)
{
p
[
"REQUEST_METHOD"
]
=
"GET"
p
[
"CONTENT_LENGTH"
]
=
"0"
p
[
"CONTENT_LENGTH"
]
=
strconv
.
FormatInt
(
l
,
10
)
return
c
.
Request
(
p
,
nil
)
return
c
.
Request
(
p
,
body
)
}
// Head issues a HEAD request to the fcgi responder.
...
...
caddyhttp/fastcgi/fcgiclient_test.go
View file @
2de49500
...
...
@@ -140,7 +140,8 @@ func sendFcgi(reqType int, fcgiParams map[string]string, data []byte, posts map[
}
resp
,
err
=
fcgi
.
PostForm
(
fcgiParams
,
values
)
}
else
{
resp
,
err
=
fcgi
.
Get
(
fcgiParams
)
rd
:=
bytes
.
NewReader
(
data
)
resp
,
err
=
fcgi
.
Get
(
fcgiParams
,
rd
,
int64
(
rd
.
Len
()))
}
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment