Added request methods
This commit is contained in:
parent
a9b1b3f9c1
commit
cfe9f0622d
3 changed files with 17 additions and 8 deletions
|
@ -143,7 +143,7 @@ func (s *server) handleConnection(conn net.Conn) {
|
|||
|
||||
method = message[:space]
|
||||
|
||||
if method != "GET" {
|
||||
if !isRequestMethod(method) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue