Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
01d92531
Unverified
Commit
01d92531
authored
Feb 28, 2020
by
rene
Committed by
GitHub
Feb 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc: correct typo and reword comment for consistency (#20728)
parent
1e1b1863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
http.go
rpc/http.go
+2
-2
No files found.
rpc/http.go
View file @
01d92531
...
...
@@ -251,7 +251,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
// All checks passed, create a codec that reads direct from the request body
// until
EOF and writes the response to w
and order the server to process a
// until
EOF, write the response to w,
and order the server to process a
// single request.
ctx
:=
r
.
Context
()
ctx
=
context
.
WithValue
(
ctx
,
"remote"
,
r
.
RemoteAddr
)
...
...
@@ -338,7 +338,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
// Not an
ip
address, but a hostname. Need to validate
// Not an
IP
address, but a hostname. Need to validate
if
_
,
exist
:=
h
.
vhosts
[
"*"
];
exist
{
h
.
next
.
ServeHTTP
(
w
,
r
)
return
...
...
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