There was an error while loading. Please reload this page.
2 parents 842b3ed + 0442b84 commit a089d89Copy full SHA for a089d89
src/hackingBuddyGPT/capabilities/http_request.py
@@ -67,7 +67,7 @@ def __call__(
67
allow_redirects=self.follow_redirects,
68
)
69
except requests.exceptions.RequestException as e:
70
- url = self.host + ("" if path.startswith("/") else "/") + path + ("?{query}" if query else "")
+ url = self.host + ("" if path.startswith("/") else "/") + path + (f"?{query}" if query else "")
71
return f"Could not request '{url}': {e}"
72
73
response_headers = "\r\n".join(f"{k}: {v}" for k, v in resp.headers.items())
0 commit comments