Skip to content

Commit 54b52d1

Browse files
committed
Fixes #12639 - Request.Content.getContentType()'s Javadoc contradicts HttpConnection.normalizeRequest() (#12773)
Fixed javadocs. Signed-off-by: Simone Bordet <[email protected]>
1 parent 156d316 commit 54b52d1

File tree

1 file changed

+4
-3
lines changed
  • jetty-core/jetty-client/src/main/java/org/eclipse/jetty/client

1 file changed

+4
-3
lines changed

jetty-core/jetty-client/src/main/java/org/eclipse/jetty/client/Request.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -675,9 +675,10 @@ public default void onFailure(Request request, Throwable failure)
675675
public interface Content extends org.eclipse.jetty.io.Content.Source
676676
{
677677
/**
678-
* @return the content type string such as "application/octet-stream" or
679-
* "application/json;charset=UTF8", or null if the {@code Content-Type}
680-
* header must not be set
678+
* @return the value of the {@code Content-Type} header for the request
679+
* content, such as {@code text/html;charset=utf-8} or {@code application/json},
680+
* or {@code null} to use the value from
681+
* {@link HttpClient#getDefaultRequestContentType()}
681682
*/
682683
public default String getContentType()
683684
{

0 commit comments

Comments
 (0)