{"action":"created","issue":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/400","labels_url":"https://api.github.com/repos/modeset/teaspoon/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/modeset/teaspoon/issues/400/comments","events_url":"https://api.github.com/repos/modeset/teaspoon/issues/400/events","html_url":"https://github.com/modeset/teaspoon/issues/400","id":100275385,"number":400,"title":"Allow binary fixtures","user":{"login":"timothee-alby","id":1547215,"avatar_url":"https://avatars.githubusercontent.com/u/1547215?v=3","gravatar_id":"","url":"https://api.github.com/users/timothee-alby","html_url":"https://github.com/timothee-alby","followers_url":"https://api.github.com/users/timothee-alby/followers","following_url":"https://api.github.com/users/timothee-alby/following{/other_user}","gists_url":"https://api.github.com/users/timothee-alby/gists{/gist_id}","starred_url":"https://api.github.com/users/timothee-alby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothee-alby/subscriptions","organizations_url":"https://api.github.com/users/timothee-alby/orgs","repos_url":"https://api.github.com/users/timothee-alby/repos","events_url":"https://api.github.com/users/timothee-alby/events{/privacy}","received_events_url":"https://api.github.com/users/timothee-alby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T10:03:58Z","updated_at":"2015-09-09T19:26:01Z","closed_at":null,"body":"Fixtures works well for template files, but don't allow binary files (or any other kind of non-template files).\r\n\r\nA typical use case is when testing a front-end app relying on binary files downloaded over the network (e.g. a PDF downloaded by pdfjs)\r\n\r\nIt appear that the issue originate from commit 1931adc300892b9266986f58e837c8803d8e2e2b, which is forcing the fixtures to be valid, UTF8-encoded templates.\r\n\r\nI can submit a PR for a fix, but I wanted to open the discussion first.\r\nI'm thinking about either doing some file type recognition to render the correct type of fixture, or creating a new fixture endpoint designed for binary files. Of course, we'll have to keep issue #264 in mind, making sure it won't create a new vulnerability."},"comment":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/comments/139021149","html_url":"https://github.com/modeset/teaspoon/issues/400#issuecomment-139021149","issue_url":"https://api.github.com/repos/modeset/teaspoon/issues/400","id":139021149,"user":{"login":"semanticart","id":8633,"avatar_url":"https://avatars.githubusercontent.com/u/8633?v=3","gravatar_id":"","url":"https://api.github.com/users/semanticart","html_url":"https://github.com/semanticart","followers_url":"https://api.github.com/users/semanticart/followers","following_url":"https://api.github.com/users/semanticart/following{/other_user}","gists_url":"https://api.github.com/users/semanticart/gists{/gist_id}","starred_url":"https://api.github.com/users/semanticart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semanticart/subscriptions","organizations_url":"https://api.github.com/users/semanticart/orgs","repos_url":"https://api.github.com/users/semanticart/repos","events_url":"https://api.github.com/users/semanticart/events{/privacy}","received_events_url":"https://api.github.com/users/semanticart/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T19:26:01Z","updated_at":"2015-09-09T19:26:01Z","body":"I'm not sure if \"fixture\" is the right word here, but I also could make use of a way to access static binary files from within teaspoon. I have some javascript that needs to reference some image files and I don't currently have a good place to put those files.\r\n\r\nCan you recommend a solution or workaround?"}}