Skip to content

Commit

Permalink
Add some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Jan 31, 2019
1 parent 5e8bd92 commit 0709742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/downloads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def show
end

def send_content
# Only append auth tokens to HLS if necessary, otherwise let normal behavior
# take care of sending it.
return send_hls if file_desc.mime_type.first.to_s == "application/x-mpegURL" && params[:auth_token].present?
prepare_file_headers
# Necessary until a Rack version is released which allows for multiple
Expand Down
1 change: 1 addition & 0 deletions app/resources/nested_resources/file_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def derivative?
use.include?(Valkyrie::Vocab::PCDMUse.ServiceFile)
end

# ServiceFilePartial isn't part of the PCDMUse vocabulary - this is made up
def derivative_partial?
use.include?(Valkyrie::Vocab::PCDMUse.ServiceFilePartial)
end
Expand Down

0 comments on commit 0709742

Please sign in to comment.