Skip to content

Commit

Permalink
#188 - url now uses strings - as it should!
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Apr 29, 2024
1 parent 4bd76db commit 389029a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CloudFlare/cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,31 +289,31 @@ def _call_network(self, method, headers, parts, identifiers, params, data_str, d
if identifiers[1] is None:
url = (self.base_url + '/'
+ parts[0] + '/'
+ identifiers[0] + '/'
+ str(identifiers[0]) + '/'
+ parts[1])
else:
url = (self.base_url + '/'
+ parts[0] + '/'
+ identifiers[0] + '/'
+ str(identifiers[0]) + '/'
+ parts[1] + '/'
+ identifiers[1])
+ str(identifiers[1]))
else:
if identifiers[0] is None:
url = (self.base_url + '/'
+ parts[0])
else:
url = (self.base_url + '/'
+ parts[0] + '/'
+ identifiers[0])
+ str(identifiers[0]))

if len(parts) > 2 and parts[2]:
url += '/' + parts[2]
if identifiers[2]:
url += '/' + identifiers[2]
url += '/' + str(identifiers[2])
if len(parts) > 3 and parts[3]:
url += '/' + parts[3]
if identifiers[3]:
url += '/' + identifiers[3]
url += '/' + str(identifiers[3])
if len(parts) > 4 and parts[4]:
url += '/' + parts[4]

Expand Down

0 comments on commit 389029a

Please sign in to comment.