Skip to content

Commit 13931db

Browse files
committed
remove auth info from url
1 parent b13cf4a commit 13931db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

replay.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def post(self, branch_name, commit_list):
111111
headers["Authorization"] = "Basic " + base64.b64encode(u.username + ":" + u.password)
112112

113113
data = json.dumps(result)
114-
con.request("POST", self.url, data, headers)
114+
url_prefix = u.scheme + "://" + u.hostname + u.path
115+
if u.query != "":
116+
url_prefix = url_prefix + "?" + u.query
117+
con.request("POST", url_prefix, data, headers)
115118
con.getresponse().read
116119
print(time.time() - start)
117120

0 commit comments

Comments
 (0)