insomnia/packages/insomnia-app/app/common
Rafael Renan Pacheco fd9ebf335d Fix 405 HTTP status description (#1479)
The https://developer.mozilla.org/en-US/docs/Web/HTTP/Status page do say that the 405 should not be returned for GET and HEAD. But if you click on that 405 link it will open https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 , and there there's nothing about mandatory methods.

On that page you will get the RFC link https://tools.ietf.org/html/rfc7231#section-6.5.5 , and again, there's nothing about mandatory methods.

The restful documentation also doesn't talk about mandatory methods for 405: https://restfulapi.net/http-status-codes/

Spring Framework (a well know framework for Java) has some configuration for the Spring Data Rest project that will result in GET requests returning 405.

Since the RFC should be the winner here, and the divergence between the mozilla's pages, I'm proposing this fix to remove the misleading description.
2019-05-03 10:18:26 -04:00
..
__fixtures__ Add trailing commas to ESLint + Prettier 2018-12-12 12:36:11 -05:00
__tests__ Add setting to show more data in timeline (Closes #1262) 2019-04-27 01:55:04 -07:00
constants.js Fix 405 HTTP status description (#1479) 2019-05-03 10:18:26 -04:00
database.js Version Control (beta) (#1439) 2019-04-17 17:50:03 -07:00
har.js Merge branch 'develop' of github.com:getinsomnia/insomnia into pull/1396 2019-04-18 10:23:15 -07:00
hotkeys-listener.js feat: Add keyboard shortcuts editor in settings 2019-03-13 00:11:02 +07:00
hotkeys.js Added a request "quick create" hotkey and data migration to ensure (#1469) 2019-04-26 13:58:05 -07:00
import.js Try importing Swagger even if validation fails (Fixes #1354) (#1462) 2019-04-25 21:27:01 -07:00
keyboard-keys.js feat: Add keyboard shortcuts editor in settings 2019-03-13 00:11:02 +07:00
markdown-to-html.js Add trailing commas to ESLint + Prettier 2018-12-12 12:36:11 -05:00
misc.js Version Control (beta) (#1439) 2019-04-17 17:50:03 -07:00
render.js Add setting to show more data in timeline (Closes #1262) 2019-04-27 01:55:04 -07:00