- Set content type to
application/json; charset=utf-8
instead ofapplication/json
when usingresponse.JSON()
. - Added default behavior for
HEAD
method: allGET
routes can now match the HTTPHEAD
method. This fixes405 Method Not Allowed
when requesting an URL with theHEAD
method when no route explicitly matches theHEAD
method. See the HEAD routing advice for more details. - Added
request.ToStruct()
, which puts the request's data into the given structure.