dlwldnjs1009 opened a new pull request, #6658:
URL: https://github.com/apache/jmeter/pull/6658

   ## Summary
   
   Fix `Follow Redirects` handling for HTTP 307 and 308 responses.
   
   - treat `307` as a redirect for all HTTP methods
   - preserve the original method for `307` and `308`
   - keep existing behavior for `301`, `302`, and `303`
   
   Also update redirect handling to use the current hop response code, so mixed 
redirect chains behave correctly.
   
   ## Tests
   
   Added coverage for:
   
   - `307` redirect recognition
   - method preservation for `307` and `308`
   - mixed redirect chain handling (`307 -> 301`)
   
   Validated with:
   
   - `./gradlew :src:protocol:http:test --tests 
org.apache.jmeter.protocol.http.sampler.TestRedirects`
   - `./gradlew :src:protocol:http:check`
   
   Fixes #6080


-- 
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]

Reply via email to