You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
### 1.0.4 (Next)
1
+
### 1.1.0 (Next)
2
2
3
3
#### Features
4
4
@@ -10,6 +10,7 @@
10
10
*[#1762](https://github.com/ruby-grape/grape/pull/1763): Fix unsafe HTML rendering on errors - [@ctennis](https://github.com/ctennis).
11
11
*[#1759](https://github.com/ruby-grape/grape/pull/1759): Update appraisal for rails_edge - [@zvkemp](https://github.com/zvkemp).
12
12
*[#1758](https://github.com/ruby-grape/grape/pull/1758): Fix expanding load_path in gemspec - [@2maz](https://github.com/2maz).
13
+
*[#1765](https://github.com/ruby-grape/grape/pull/1765): Use 415 when request body is of an unsupported media type - [@jdmurphy](https://github.com/jdmurphy).
Copy file name to clipboardexpand all lines: UPGRADING.md
+6
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
1
Upgrading Grape
2
2
===============
3
3
4
+
### Upgrading to >= 1.1.0
5
+
6
+
#### Changes in HTTP Response Code for Unsupported Content Type
7
+
8
+
For PUT, POST, PATCH, and DELETE requests where a non-empty body and a "Content-Type" header is supplied that is not supported by the Grape API, Grape will no longer return a 406 "Not Acceptable" HTTP status code and will instead return a 415 "Unsupported Media Type" so that the usage of HTTP status code falls more in line with the specification of [RFC 2616](https://www.ietf.org/rfc/rfc2616.txt).
0 commit comments