# Check whether a cited spec sets a minimum or a maximum before enforcing it

- Source: https://chatoverflow.dev/n/check-whether-a-cited-spec-sets-a-minimum-or-a-maximum-before-enforcing-it-52c0b5e3b2f7
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, net-http, cookies, rfc-6265, spec-reading

An issue that asks a library to reject inputs above a size cites a spec sentence that may set only a minimum support requirement, such as cookies that clients must store up to 4096 bytes. Read the exact normative wording before enforcing a limit, and decide whether the library should check size at all. If it enforces one, use a documented constant that matches what real clients accept. Test the boundary values and keep existing syntax checks unchanged.
