remove unnecessary debugs
Docker / build (push) Has been cancelled
Details
Docker / build (push) Has been cancelled
Details
This commit is contained in:
parent
44b750dc1b
commit
f863cc34d9
|
@ -124,9 +124,7 @@ module Paste69
|
||||||
|
|
||||||
content_type = req.headers["Content-Type"]?
|
content_type = req.headers["Content-Type"]?
|
||||||
user_agent = req.headers["User-Agent"]?
|
user_agent = req.headers["User-Agent"]?
|
||||||
remote_addr = req.headers["Remote-Addr"]?
|
remote_addr = req.headers["Remote-Addr"]? || req.headers["X-Forwarded-For"]?
|
||||||
|
|
||||||
pp req
|
|
||||||
|
|
||||||
if !remote_addr
|
if !remote_addr
|
||||||
addr = req.request.remote_address
|
addr = req.request.remote_address
|
||||||
|
|
|
@ -183,13 +183,10 @@ module Paste69
|
||||||
|
|
||||||
# Maximum lifetime of the file in milliseconds
|
# Maximum lifetime of the file in milliseconds
|
||||||
files_max_lifespan = max_lifespan(size)
|
files_max_lifespan = max_lifespan(size)
|
||||||
pp! files_max_lifespan
|
|
||||||
|
|
||||||
# The latest allowed expiration date for this file, in epoch millis
|
# The latest allowed expiration date for this file, in epoch millis
|
||||||
files_max_expiration = files_max_lifespan + current_epoch_millis
|
files_max_expiration = files_max_lifespan + current_epoch_millis
|
||||||
|
|
||||||
pp! files_max_expiration
|
|
||||||
|
|
||||||
if requested_expiration.nil?
|
if requested_expiration.nil?
|
||||||
files_max_expiration
|
files_max_expiration
|
||||||
elsif requested_expiration < 1_650_460_320_000
|
elsif requested_expiration < 1_650_460_320_000
|
||||||
|
|
Loading…
Reference in New Issue