This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove trailing slashes from outbound federation requests #4840
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
525dd02
Remove trailing slashes from outbound federation requests
anoadragon453 64ff110
Retry certain federation requests on 404
anoadragon453 f8740d5
Add changelog
anoadragon453 a5dd335
lint
anoadragon453 a8a028d
Merge branch 'develop' into anoa/trailing_slashes_client
anoadragon453 f18dca2
Merge branch 'develop' into anoa/trailing_slashes_client
anoadragon453 66f205e
We're calling different functions now
anoadragon453 802cb5d
Fix syntax error
anoadragon453 4868b12
and again
anoadragon453 0ea8582
Cleaner way of implementing trailing slashes
anoadragon453 97653ef
Correct argument name
anoadragon453 cf301e3
Add workaround note
anoadragon453 7e75d96
Fix paranthesis indent
anoadragon453 7d053cf
Retry on 400:M_UNRECOGNIZED
anoadragon453 09626bf
Switch to wrapper function around _send_request
anoadragon453 5526b05
Fix syntax issues
anoadragon453 660b77f
Add missing docstring detail
anoadragon453 220607a
Remove testing code
anoadragon453 9dd0e34
Syntax test
anoadragon453 ee8ba39
Are you happy now
anoadragon453 c2d848b
Destructure again
anoadragon453 c991e7a
Syntax checker is bork
anoadragon453 bec3138
go home python, you're drunk
anoadragon453 66cdb84
Or perhaps I was the one who was drunk
anoadragon453 7c0295f
no kwargs today
anoadragon453 5ca857a
as above
anoadragon453 26f8e2d
there comes a time when you should give up. but you dont
anoadragon453 8d16ffa
i should have given up
anoadragon453 45524f2
i should have given up x2
anoadragon453 86c60bd
i should have given up x3
anoadragon453 9a2e22f
is this what purgatory feels like
anoadragon453 b2df0e8
receiving a 400 caused an exception. handle it
anoadragon453 ecea5af
Correct var name
anoadragon453 621e7f3
Better exception handling
anoadragon453 a8ad39e
lint
anoadragon453 94cb793
Federation test fixed!
anoadragon453 551ea11
Just return if not doing any trailing slash shennanigans
anoadragon453 c69df5d
Fix comments. v0.99.2 -> v0.99.3
anoadragon453 cd36a12
New test, fix issues
anoadragon453 bb52a2e
lint
anoadragon453 2150151
kwargs doesn't like commas on calling funcs either. TIL
anoadragon453 b41c2ea
Clean up backoff_on_404 and metehod calls
anoadragon453 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Remove trailing slashes from certain outbound federation requests. Retry if receiving a 404. Context: #3622. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.