WebApiContrib.Formatting.Jsonp
                                
                                 WebApiContrib.Formatting.Jsonp copied to clipboard
                                
                                    WebApiContrib.Formatting.Jsonp copied to clipboard
                            
                            
                            
                        Update JsonpMediaTypeFormatter.cs
Line 104: Modification to process non-jsonp requests within the same context. i.e. POST, PUT, PATCH, DELETE, etc. Currently, it will throw the InvalidOperationException if a callback is not present, thus failing non-GET requests.
I can't tell exactly what you are trying to do in this PR. The goal of this formatter is to add it to the bottom of the list and allow the default JSON formatter to run for all other requests, allowing this one to handle requests with a correct Accept header for valid or often used JSONP media types. Earlier attempts tried to allow the same formatter to be used to service all JSON and JSONP requests, but there are both security vulnerabilities and other issues I've since forgotten, some having to do with mismatched Content-Type headers.