Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use message/external-body MIME type for registering 'redirect' binaries #614

Merged
merged 1 commit into from Oct 31, 2014

Conversation

cbeer
Copy link
Contributor

@cbeer cbeer commented Oct 30, 2014

Here's an idea for handling "redirect" binaries. I think it's a nice compromise between the empty-binary-with-a-special-property and creating a whole new type of thing.

Plus, I don't think we abuse the MIME type too much: https://tools.ietf.org/html/rfc2017

https://www.pivotaltracker.com/story/show/81770804

@cbeer cbeer force-pushed the external-body branch 3 times, most recently from 6b73765 to 0e1a10e Compare October 30, 2014 23:22
@@ -116,6 +117,7 @@
public abstract class ContentExposingResource extends FedoraBaseResource {

private static final Logger LOGGER = getLogger(ContentExposingResource.class);
public static final MediaType MESSAGE_EXTERNAL_BODY = MediaType.valueOf("message/external-body");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume "message/external-body" is a completely fabricated mediatype. In which case, should it not be in either the "vendor tree" (vnd) or "personal tree" (prs)?
http://en.wikipedia.org/wiki/Internet_media_type#Vendor_tree

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is not fabricated:

Plus, I don't think we abuse the MIME type too much: https://tools.ietf.org/html/rfc2017

awoods pushed a commit that referenced this pull request Oct 31, 2014
Use message/external-body MIME type for registering 'redirect' binaries
@awoods awoods merged commit 96c79ef into master Oct 31, 2014
@awoods awoods deleted the external-body branch October 31, 2014 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants