{"push_id":1138175984,"size":1,"distinct_size":1,"ref":"refs/heads/3286-add-accepted-formats","head":"34eadeca4d4be987f3d5ea3761600e0aae558f61","before":"7490e25884d2a4c3e822c85e1fad027f974a2cb4","commits":[{"sha":"34eadeca4d4be987f3d5ea3761600e0aae558f61","author":{"name":"Gareth Rees","email":"ef82be8a2b7af6049fce2b871000561e9a5d932e@garethrees.co.uk"},"message":"Add accepted formats to frontpage and blog\n\nBots make requests for weird formats, presumably to poke at security\nholes. Here's an example:\n\n    $ curl -I -H \"Accept: application/vnd.ms-excel\" \\\n        -H \"Content-Type: application/vnd.ms-excel\" \\\n        -X GET \\\n        http://10.10.10.30:3000?q=user\n\nThis was causing an ActionView::MissingTemplate error.\n\nThis change results in a 406 Not Acceptable response, saving us a bunch\nof exception notification mail. We should probably do this elsewhere,\nbut / and /blog seem to be the most common targets.\n\nSee http://www.justinweiss.com/articles/respond-to-without-all-the-pain/\nfor a bit more detail.","distinct":true,"url":"https://api.github.com/repos/mysociety/alaveteli/commits/34eadeca4d4be987f3d5ea3761600e0aae558f61"}]}
{"actor":{"display_login":"mysociety-pusher"}}