Skip to content

Commit 16ff18c

Browse files
authored
Merge pull request #96 from jagerman/v3-onion-201
Make sure v3 onion requests work for 201-returning endpoints
2 parents 55232c6 + 4094803 commit 16ff18c

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)