6da1941553
Since Rails 5.0 `request.format` is being set depending on the route extension. In commits pages we pass a ref as a URL parameter. If the ref is an extension-like, Rails converts it and sets to `request.format`. E.g. if the ref is `some_branch.atom`, Rails starts responding with `atom` format, but it should response with `html` because `.atom` is the part of ref name, not the format. This commit explicitly sets `request.format` to `:html` when needed.
5 lines
118 B
YAML
5 lines
118 B
YAML
---
|
|
title: "[Rails5] Set request.format in commits_controller"
|
|
merge_request: 20023
|
|
author: "@blackst0ne"
|
|
type: fixed
|