cstamas commented on code in PR #1891:
URL: https://github.com/apache/maven-resolver/pull/1891#discussion_r3310355326
##########
maven-resolver-api/src/main/java/org/eclipse/aether/ConfigurationProperties.java:
##########
@@ -596,6 +596,26 @@ public final class ConfigurationProperties {
*/
public static final boolean DEFAULT_VERSION_SCHEME_CACHE_DEBUG = false;
+ /**
+ * Boolean flag should the HTTP transport support RFC 9457 messages. Some
servers have issues with handling the
+ * HTTP Accept headers, when support is enabled. Known servers not
supporting RFC 9457 is for
+ * example Sonatype Nexus 2.
+ *
+ * @since 2.0.19
+ * @configurationSource {@link
RepositorySystemSession#getConfigProperties()}
+ * @configurationType {@link java.lang.Boolean}
+ * @configurationDefaultValue {@link #DEFAULT_HTTP_SUPPORT_RFC9457}
+ * @configurationRepoIdSuffix Yes
+ */
+ public static final String HTTP_SUPPORT_RFC9457 = PREFIX_TRANSPORT_HTTP +
"supportRfc9457";
Review Comment:
This and @slawekjaranowski comment below makes sense, this config should be
ONLY about `Accept` header, and then as Slawek says below, just always parse
response?
--
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]