aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Return a string content_length for HEADTomasz Kramkowski2023-03-271-1/+1
|
* if_none_match: quote ETag valuesTomasz Kramkowski2023-03-272-2/+5
|
* Respond to auth failures with WWW-AuthenticateTomasz Kramkowski2023-03-272-2/+13
|
* tests/middleware/if_none_match: remove duplicate testTomasz Kramkowski2023-03-271-7/+0
|
* pass exc_info explicitlyTomasz Kramkowski2023-03-271-1/+1
|
* Remove format executableTomasz Kramkowski2023-03-271-3/+0
|
* add middleware testsTomasz Kramkowski2023-03-248-0/+483
|
* add tests for paste.dbTomasz Kramkowski2023-03-244-1/+141
|
* paste.db.connect: add docstrings and doctestsTomasz Kramkowski2023-03-241-0/+70
|
* paste.db.connect: make migrations optionalTomasz Kramkowski2023-03-241-2/+3
|
* authenticate: rewriteTomasz Kramkowski2023-03-241-10/+15
| | | | | | | | | | Fixes a few core issues: - No longer uses the Bearer type, instead using a custom APIKey type, this is because this has nothing to do with OAuth 2.0 bearer tokens. - Validation is moved into the middleware, with the check_auth function renamed to check_token with the sole job of checking the token, this makes testing easier - Validation handles more cases
* catch_exceptions: set exc_info in responseTomasz Kramkowski2023-03-241-2/+8
|
* terminate all migrations with semicolonTomasz Kramkowski2023-03-241-1/+1
|
* prevent accessing a future database versionTomasz Kramkowski2023-03-241-0/+4
|
* do not shorten connection to conn in the db APITomasz Kramkowski2023-03-241-7/+7
|
* .ignore: ignore poetry.lock for tools like agTomasz Kramkowski2023-03-241-0/+1
|
* Use blake2b instead of sha256 as the data hashTomasz Kramkowski2023-03-241-2/+2
| | | | With a digest size of 32 so it takes up the same amount of space
* Add a DATA_HASH UDF (same as SHA256)Tomasz Kramkowski2023-03-242-6/+15
| | | | | | This means that the underlying hash function can be changed without needing to change the name. Although the change would still break the database backwards compatibility, but that's a separate problem.
* isort importsTomasz Kramkowski2023-03-243-16/+14
|
* add isort as a dev dependencyTomasz Kramkowski2023-03-242-1/+20
|
* paste.db: Refactor connectTomasz Kramkowski2023-03-241-10/+19
|
* Implement If-None-Match handlingTomasz Kramkowski2023-03-241-1/+55
|
* Fix ETag header formatTomasz Kramkowski2023-03-241-2/+2
|
* fix the StartResponse type and make it a protocolTomasz Kramkowski2023-03-241-2/+13
|
* remove unnecessary import (hashlib.sha256)Tomasz Kramkowski2023-03-241-1/+0
|
* First draft versionTomasz Kramkowski2023-02-1412-0/+739
|
* init commitTomasz Kramkowski2023-02-140-0/+0