Skip to content

Commit

Permalink
Disable length change check
Browse files Browse the repository at this point in the history
  • Loading branch information
andywebb1975 committed May 5, 2024
1 parent 76d1d8e commit ca7b8cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private PreparedRequest preparePutOrPost(
String bodyQueryString = requestParams.toQueryString().substring(1);
bodyPublisher = HttpRequest.BodyPublishers.ofString(bodyQueryString);
// this isn't intended to be merged - but it shows the content length change noted above
if (bodyQueryString.length() != bodyPublisher.contentLength()) throw new URISyntaxException("inconsistent content length", bodyQueryString + " - " + bodyQueryString.length() + " -> " + bodyPublisher.contentLength());
// if (bodyQueryString.length() != bodyPublisher.contentLength()) throw new URISyntaxException("inconsistent content length", bodyQueryString + " - " + bodyQueryString.length() + " -> " + bodyPublisher.contentLength());
// qP has been replaced with params moved from original set
} else {
bodyPublisher = HttpRequest.BodyPublishers.noBody();
Expand Down

0 comments on commit ca7b8cf

Please sign in to comment.