Skip to content

Commit

Permalink
support alternate yaml mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Apr 25, 2011
1 parent 85f7492 commit 34a8aa5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class FrameworkController {
final Nodes.Format format
if(contentType.endsWith("/xml")){
format=Nodes.Format.resourcexml
}else if("text/yaml"==contentType){
}else if(contentType.endsWith('/yaml')|| contentType.endsWith('/x-yaml')){
format = Nodes.Format.resourceyaml
}else {
flash.error = "Unexpected content type: ${contentType}"
Expand Down

0 comments on commit 34a8aa5

Please sign in to comment.