netty5/codec-http/src
Gustavo Fernandes f874a37ecb Fixes NPE in Corshandler for unauthorized prefligt requests (#7865)
Motivation:
NPE in `CorsHandler` if a pre-flight request is done using an Origin header which is not allowed by any `CorsConfig` passed to the handler on creation.

Modifications:
During the pre-flight, check the `CorsConfig` for `null` and handle it correctly by not returning any access-control header

Result:
No more NPE for pre-flight requests with unauthorized origins.
2018-04-13 14:36:45 +02:00
..
main/java/io/netty/handler/codec Fixes NPE in Corshandler for unauthorized prefligt requests (#7865) 2018-04-13 14:36:45 +02:00
test Fixes NPE in Corshandler for unauthorized prefligt requests (#7865) 2018-04-13 14:36:45 +02:00