Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Commit

Permalink
add gif format
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtk75 committed Jun 22, 2013
1 parent 4e98475 commit 6543b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _diagrams = (jmcode, req, res)->
encoding = "image" if encoding is "*"

return if _400_if_not_have res, encoding, ["image", "base64", "html"]
return if _400_if_not_have res, format, ["png", "jpg", "jpeg", "html"]
return if _400_if_not_have res, format, ["png", "gif", "jpg", "jpeg", "html"]

## jumly.sh prints tmpfile path to stdout if it creates image file
filepath = ""
Expand Down

0 comments on commit 6543b53

Please sign in to comment.