drahak / Restful

Drahak\Restful - Nette REST API bundle
0 stars 0 forks source link

There is no mapper for Content-Type: exception when using SecuredAuthentication #93

Open kuzmamar opened 8 years ago

kuzmamar commented 8 years ago

I get this error when sending request (GET) with no Content-Type header. I thing that the problem is as follows: When no content-type is provided Drahak\Restful\Mapping\MapperContext-> getMapper ($contentType) receives NULL, But there is no mapper for NULL value. I looked in the mapperContext and there is null as a string value 'NULL' with NullMapper. I there needs to be also NullMapper for NULL.