Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
df053354
"...Irrlicht/svn:/svn.code.sf.net/p/irrlicht/code/trunk@4275" did not exist on "1cc1271e9b6f9060106f4d04f2aafdaa0ce1c8bd"
Commit
df053354
authored
Aug 24, 2017
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #149
parent
91b966b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
http.go
http.go
+5
-4
No files found.
http.go
View file @
df053354
...
...
@@ -94,16 +94,17 @@ func (h *httpHandler) Handle(conn net.Conn) {
}
if
Debug
{
log
.
Logf
(
"[http] %s %s - %s %s"
,
req
.
Method
,
conn
.
RemoteAddr
(),
req
.
Host
,
req
.
Proto
)
dump
,
_
:=
httputil
.
DumpRequest
(
req
,
false
)
log
.
Logf
(
string
(
dump
))
log
.
Logf
(
"[http] %s -> %s
\n
%s"
,
conn
.
RemoteAddr
(),
req
.
Host
,
string
(
dump
))
}
if
req
.
Method
==
"PRI"
&&
req
.
ProtoMajor
==
2
{
log
.
Logf
(
"[http] %s <- %s : Not an HTTP2 server"
,
conn
.
RemoteAddr
(),
req
.
Host
)
if
req
.
Method
==
"PRI"
||
(
req
.
Method
!=
http
.
MethodConnect
&&
req
.
URL
.
Scheme
!=
"http"
)
{
resp
:=
"HTTP/1.1 400 Bad Request
\r\n
"
+
"Proxy-Agent: gost/"
+
Version
+
"
\r\n\r\n
"
conn
.
Write
([]
byte
(
resp
))
if
Debug
{
log
.
Logf
(
"[http] %s <- %s
\n
%s"
,
conn
.
RemoteAddr
(),
req
.
Host
,
resp
)
}
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