fixed the x-forwarded-for header in the header checking

This commit is contained in:
ekultek 2017-11-24 07:03:10 -06:00
parent 3d37e31747
commit 3225387157

View file

@ -153,7 +153,7 @@ def load_headers(url, **kwargs):
header_value = {
HTTP_HEADER.CONNECTION: "close",
HTTP_HEADER.USER_AGENT: agent,
HTTP_HEADER.X_FORWARDED_FROM: "{}, {}, {}".format(
HTTP_HEADER.X_FORWARDED_FOR: "{}, {}, {}".format(
ip_list[0], ip_list[1], ip_list[2]
)
}