Skip to content
Browse files

Support for .bin as binary/octet-stream

  • Loading branch information...
1 parent 29ea4ec commit 4abc4fc4f89532fa351f471d9fa4fb5826a7d653 @nicolasff committed Jan 9, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 cmd.c
View
2 cmd.c
@@ -201,6 +201,8 @@ cmd_select_format(struct cmd *cmd, const char *uri, size_t uri_len, formatting_f
struct reply_format funs[] = {
{.s = "json", .sz = 4, .f = json_reply, .ct = "application/json"},
{.s = "raw", .sz = 3, .f = raw_reply, .ct = "binary/octet-stream"},
+
+ {.s = "bin", .sz = 3, .f = custom_type_reply, .ct = "binary/octet-stream"},
{.s = "txt", .sz = 3, .f = custom_type_reply, .ct = "text/plain"},
{.s = "html", .sz = 4, .f = custom_type_reply, .ct = "text/html"},
{.s = "xhtml", .sz = 5, .f = custom_type_reply, .ct = "application/xhtml+xml"},

0 comments on commit 4abc4fc

Please sign in to comment.
Something went wrong with that request. Please try again.