MCPcopy Create free account
hub / github.com/devploit/nomore403 / rawRequestTarget

Function rawRequestTarget

cmd/api.go:443–458  ·  view source on GitHub ↗
(rawURI string)

Source from the content-addressed store, hash-verified

441}
442
443func rawRequestTarget(rawURI string) string {
444 idx := strings.Index(rawURI, "://")
445 if idx < 0 {
446 return "/"
447 }
448 rest := rawURI[idx+3:]
449 slashIdx := strings.Index(rest, "/")
450 if slashIdx < 0 {
451 return "/"
452 }
453 target := rest[slashIdx:]
454 if target == "" {
455 return "/"
456 }
457 return target
458}
459
460func captureBodySignature(r io.Reader) (int, string, error) {
461 hasher := fnv.New64a()

Callers 2

requestBodyFunction · 0.85
rawRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected