Skip to content

DavResource requests logged as Accept: type1; type2 instead of using a comma #2630

Description

@rfc2822

Thanks for the hint. I have to investigate because I didn't write the semicolon myself, but just used two Ktor accept() calls:

https://github.com/bitfireAT/dav4jvm/blob/7af9294b16099b8895b57943568f7492553816dd/src/main/kotlin/at/bitfire/dav4jvm/ktor/DavResource.kt#L760-L763

Seems that this has unintended consequences; maybe even a Ktor bug? If the API mustn't be used like that, then it could at least prevent it … but as I understand it, you can use as many accept(...) as you want and ContentNegotation and other plugins also just call accept(...) to add their accepted types.

Originally posted by @rfc2822 in #2621 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions