mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
remove surf proxy before check
This commit is contained in:
parent
eb316031a2
commit
f23b5c4871
1 changed files with 0 additions and 4 deletions
4
app.rb
4
app.rb
|
@ -24,10 +24,6 @@ end
|
|||
set :protection, :frame_options => "ALLOW-FROM #{$config['surf_iframe_source']}"
|
||||
|
||||
before do
|
||||
if request.host.match /\w+\.#{Addressable::URI.parse($config['surf_proxy_uri']).host}/i
|
||||
surf_proxy
|
||||
end
|
||||
|
||||
if request.path.match /^\/api\//i
|
||||
@api = true
|
||||
content_type :json
|
||||
|
|
Loading…
Add table
Reference in a new issue