luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.57k stars 156 forks source link

Feat make redirect status configurable #1838

Closed wout closed 8 months ago

wout commented 8 months ago

Purpose

This PR implements the suggestion in #1837.

Description

It allows the default redirect status (previously hardcoded as 302) to be configured:

Lucky::Redirectable.configure do |config|
  config.redirect_status = 303
end

Checklist