MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / _ekey

Method _ekey

thirdparty/bottle/bottle.py:2682–2687  ·  view source on GitHub ↗

Translate header field name to CGI/WSGI environ key.

(self, key)

Source from the content-addressed store, hash-verified

2680 self.environ = environ
2681
2682 def _ekey(self, key):
2683 """ Translate header field name to CGI/WSGI environ key. """
2684 key = key.replace('-', '_').upper()
2685 if key in self.cgikeys:
2686 return key
2687 return 'HTTP_' + key
2688
2689 def raw(self, key, default=None):
2690 """ Return the header value as is (may be bytes or unicode). """

Callers 3

rawMethod · 0.95
__getitem__Method · 0.95
__contains__Method · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected