Sslstrip error

Unhandled Error
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/twisted/python/log.py”, line 103, in callWithLogger
return callWithContext({“system”: lp}, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/log.py”, line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/context.py”, line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/context.py”, line 85, in callWithContext
return func(*args,**kw)
— —
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py”, line 614, in _doReadOrWrite
why = selectable.doRead()
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py”, line 243, in doRead
return self._dataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py”, line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/protocols/basic.py”, line 579, in dataReceived
why = self.rawDataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/web/http.py”, line 649, in rawDataReceived
self.handleResponseEnd()
File “/usr/local/lib/python2.7/dist-packages/sslstrip/ServerConnection.py”, line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File “/usr/local/lib/python2.7/dist-packages/twisted/web/http.py”, line 612, in handleResponseEnd
self.handleResponse(b)
File “/usr/local/lib/python2.7/dist-packages/sslstrip/ServerConnection.py”, line 131, in handleResponse
self.client.setHeader(‘Content-Length’, len(data))
File “/usr/local/lib/python2.7/dist-packages/twisted/web/http.py”, line 1314, in setHeader
self.responseHeaders.setRawHeaders(name, [value])
File “/usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py”, line 220, in setRawHeaders
for v in self._encodeValues(values)]
File “/usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py”, line 40, in _sanitizeLinearWhitespace
return b’ '.join(headerComponent.splitlines())
exceptions.AttributeError: ‘int’ object has no attribute ‘splitlines’

Can you anyone help me to solve this error ?

You have to give more details here. What particular python code are you running, what is the python version? Also, from looking at the error, it says that the int object has no attribute splitlines. It means that you are using splitlines for an int type object. Ideally, splitlines works for list objects and not int objects

It was come from during sslstrip running. I’m use for it python2