Skip to content

Commit 4094803

Browse files
committed
Make sure v3 onion requests work for 201-returning endpoints
1 parent 55232c6 commit 4094803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sogs/routes/onion_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def handle_v3_onionreq_plaintext(body):
8787
user_reauth=True, # Because onion requests have auth headers on the *inside*
8888
)
8989

90-
if response.status_code == http.OK:
90+
if 200 <= response.status_code < 300:
9191
data = response.get_data()
9292
app.logger.debug(
9393
f"Onion sub-request for {endpoint} returned success, {len(data)} bytes"

0 commit comments

Comments
 (0)