Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1252

StringBody.create() makes no sense

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.1.3
    • 4.3 Alpha1
    • HttpClient (classic)
    • None

    Description

      StringBody.java:

      public static StringBody create(
        final String text, final Charset charset) throws IllegalArgumentException;
      
      public static StringBody create(
        final String text) throws IllegalArgumentException;
      

      Both create methods are useless, because the MIME-Types defaults to null which AbstractContentBody does not allow.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mcescher Ă–mer Yildiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: