dubeejw commented on issue #2690: content-type header missing in web action headers URL: https://github.com/apache/incubator-openwhisk/issues/2690#issuecomment-329050514 Could do something like this if we want to exclude the `none/none` content-type. ``` val headers = ctx.request.headers ++ contentTypeFromEntity(ctx.request.entity) ``` ``` private def contentTypeFromEntity(entity: HttpEntity) = { entity.contentType match { case ct if ct == ContentType(MediaType.customBinary("none", "none", MediaType.NotCompressible)) => Seq() case ct => Seq(RawHeader(`Content-Type`.lowercaseName, ct.toString)) } } ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
