You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was earlier using jetty version 9.4.43 and had following code to change empty content-type to "application/octet-stream"
in request metadata in order to avoid jetty not supporting empty content type and throwing 400 errors .
Jetty 10 : code changes made to use computeField from HttpFields.Mutable
HttpFields.build(request.getMetaData()
.getFields()).computeField(HttpHeader.CONTENT_TYPE, (httpHeader, httpFields) ->
new HttpField(httpHeader, MediaType.APPLICATION_OCTET_STREAM));
But it has started throwing 400 error again .It seems header value is not getting modified to APPLICATION_OCTET_STREAM from empty
This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
Jetty version(s)
Jetty 10.0.12
I was earlier using jetty version 9.4.43 and had following code to change empty content-type to "application/octet-stream"
in request metadata in order to avoid jetty not supporting empty content type and throwing 400 errors .
Jetty 9 code :
request.getMetaData()
.getFields()
.computeField(HttpHeader.CONTENT_TYPE, (httpHeader, httpFields) ->
new HttpField(httpHeader, MediaType.APPLICATION_OCTET_STREAM));
Jetty 10 : code changes made to use computeField from HttpFields.Mutable
HttpFields.build(request.getMetaData()
.getFields()).computeField(HttpHeader.CONTENT_TYPE, (httpHeader, httpFields) ->
new HttpField(httpHeader, MediaType.APPLICATION_OCTET_STREAM));
But it has started throwing 400 error again .It seems header value is not getting modified to APPLICATION_OCTET_STREAM from empty
Looks somewhat similar to #7818
The text was updated successfully, but these errors were encountered: