MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isValidHeaderValue

Function isValidHeaderValue

out/cli.cjs:50548–50556  ·  view source on GitHub ↗
(potentialValue)

Source from the content-addressed store, hash-verified

50546 return false;
50547 }
50548 }
50549 return true;
50550 }
50551 function isValidHeaderName2(potentialValue) {
50552 return isValidHTTPToken(potentialValue);
50553 }
50554 function isValidHeaderValue(potentialValue) {
50555 if (potentialValue.startsWith(" ") || potentialValue.startsWith(" ") || potentialValue.endsWith(" ") || potentialValue.endsWith(" ")) {
50556 return false;
50557 }
50558 if (potentialValue.includes("\0") || potentialValue.includes("\r") || potentialValue.includes("\n")) {
50559 return false;

Callers 3

responseLocationURLFunction · 0.85
appendHeaderFunction · 0.85
setMethod · 0.85

Calls 3

startsWithMethod · 0.80
endsWithMethod · 0.80
includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…