| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ers are exist in Iris strict server.
…is is generate as pointer type. When this field is nil, corresponding header is not set in functions Visit*.
|
Thank you for submitting this PR, @ShouheiNishi — but we need to close it because it has been superseded by #2301 (commit a4c36dc2), which landed all three elements you proposed: pointer types for optional headers (*T via GoTypeDef() in pkg/codegen/operations.go), nil-guards on w.Header().Set() in the strict-server templates, and a HeadersImplicitlyRequired compatibility flag for users relying on the old behavior. The originally-linked issue #1301 is now fixed. Apologies for the long wait. We really do appreciate the contribution — it pointed at the right problem and the right shape of fix. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
To fix issue #1301, when header is optional, field for this is generate as pointer type. When this field is nil, corresponding header is not set in functions Visit*.
However, this change introduce some incompatibility.
So we add compatibility option.
And this PR included PR #1411.