MCPcopy Index your code
hub / github.com/pyload/pyload / verifyHeader

Method verifyHeader

module/network/HTTPRequest.py:243–249  ·  view source on GitHub ↗

raise an exceptions on bad headers

(self)

Source from the content-addressed store, hash-verified

241 return rep
242
243 def verifyHeader(self):
244 """ raise an exceptions on bad headers """
245 code = int(self.c.getinfo(pycurl.RESPONSE_CODE))
246 if code in bad_headers:
247 #404 will NOT raise an exception
248 raise BadHeader(code, self.header, self.getResponse())
249 return code
250
251 def checkHeader(self):
252 """ check if header indicates failure"""

Callers 3

loadMethod · 0.95
_downloadMethod · 0.80
uploadMethod · 0.80

Calls 2

getResponseMethod · 0.95
BadHeaderClass · 0.85

Tested by

no test coverage detected