arturobernalg commented on code in PR #424:
URL:
https://github.com/apache/httpcomponents-core/pull/424#discussion_r1311925115
##########
httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestContent.java:
##########
@@ -127,4 +133,32 @@ public void process(final HttpRequest request, final
EntityDetails entity, final
}
}
+ /**
+ * Validates the presence and format of the Content-Type header for an
OPTIONS request.
+ *
+ * <p>
+ * According to the HTTP protocol, an {@link Method#OPTIONS} request that
contains content must also have
Review Comment:
@reschke
To ensure I understand correctly, are you suggesting that the validation for
a valid Content-Type header when content is present should be applied to all
HTTP methods and not just OPTIONS? If so, are there specific methods you have
in mind that should undergo this validation? Could you please specify or guide
me to the exact section or sections in the RFC where this requirement is
detailed for other HTTP methods?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]