mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 14:09:44 +02:00
added real_ip and cloudflare_real_ip middlewares, fixed that some middlewares does not work properly
This commit is contained in:
7
internal/net/http/status_code.go
Normal file
7
internal/net/http/status_code.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package http
|
||||
|
||||
import "net/http"
|
||||
|
||||
func IsSuccess(status int) bool {
|
||||
return status >= http.StatusOK && status < http.StatusMultipleChoices
|
||||
}
|
||||
Reference in New Issue
Block a user