Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8447

Content-Language always set to en_US

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: 3.3.1, 3.4.3
    • Fix Version/s: None
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hello,

      it seems there's an issue with header Content-Language which is always set to en_US.

      Here, entity is created with this default value:

      https://github.com/apache/camel/blob/master/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java#L255

      And even when using language() on WebClient, value is always overriden here:

      https://github.com/apache/cxf/blob/master/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java#L1329

       

      Could you please provide a fix?

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              jgreffe Julien Greffe

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment