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
Łukasz Nowak
caddy
Commits
1ac32a52
Commit
1ac32a52
authored
Apr 25, 2015
by
Thomas Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generalizing fastcgi parameters, and improving headers passed.
parent
9e12c45d
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
82 deletions
+210
-82
middleware/fastcgi/fastcgi.go
middleware/fastcgi/fastcgi.go
+205
-80
middleware/fastcgi/fcgiclient.go
middleware/fastcgi/fcgiclient.go
+5
-2
No files found.
middleware/fastcgi/fastcgi.go
View file @
1ac32a52
This diff is collapsed.
Click to expand it.
middleware/fastcgi/fcgiclient.go
View file @
1ac32a52
...
...
@@ -376,10 +376,13 @@ func (this *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.
if
resp
.
Header
.
Get
(
"Status"
)
!=
""
{
statusParts
:=
strings
.
SplitN
(
resp
.
Header
.
Get
(
"Status"
),
" "
,
2
)
resp
.
StatusCode
,
_
=
strconv
.
Atoi
(
statusParts
[
0
])
resp
.
StatusCode
,
err
=
strconv
.
Atoi
(
statusParts
[
0
])
if
err
!=
nil
{
return
}
resp
.
Status
=
statusParts
[
1
]
}
else
{
resp
.
StatusCode
=
200
resp
.
StatusCode
=
http
.
StatusOK
}
// TODO: fixTransferEncoding ?
...
...
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