• k8s-merge-robot's avatar
    Merge pull request #28933 from smarterclayton/accept_content_types · d897db4a
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Use response content-type on restclient errors
    
    Also allow a new AcceptContentTypes field to allow the client to ask for
    a fallback serialization when getting responses from the server. This
    allows a new client to ask for protobuf and JSON, falling back to JSON
    when necessary.
    
    The changes to request.go allow error responses from non-JSON servers to
    be properly decoded.
    
    @wojtek-t - also alters #28910 slightly (this is better output)
    d897db4a
Name
Last commit
Last update
..
cache Loading commit data...
chaosclient Loading commit data...
clientset_generated Loading commit data...
leaderelection Loading commit data...
metrics Loading commit data...
record Loading commit data...
restclient Loading commit data...
testdata Loading commit data...
testing/core Loading commit data...
transport Loading commit data...
typed Loading commit data...
unversioned Loading commit data...
OWNERS Loading commit data...