diff options
Diffstat (limited to 'paste/store.py')
-rw-r--r-- | paste/store.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/paste/store.py b/paste/store.py index ec51a7f..ed81560 100644 --- a/paste/store.py +++ b/paste/store.py @@ -38,12 +38,7 @@ def get(conn: Connection, name: str): def head(conn: Connection, name: str): row = conn.execute( - """SELECT link.content_type, file.hash, length(file.content), - CASE - WHEN link.content_type LIKE 'text/x.redirect%' - THEN file.content - ELSE NULL - END + """SELECT link.content_type, file.hash, length(file.content) FROM link JOIN file ON file.hash = link.file_hash WHERE name_hash = DATA_HASH(?)""", |