Skip to content

Commit

Permalink
Fixed issue with GET Requests in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyaalk committed Nov 4, 2024
1 parent e5b99ae commit a52db0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.degressly.proxy.core.dto.GeneratedHttpServletRequest;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.experimental.UtilityClass;
import org.springframework.http.HttpMethod;

import java.net.URI;
import java.net.URISyntaxException;
Expand All @@ -14,7 +15,7 @@ public class KafkaToHttpServletRequestAdapter {
public static GeneratedHttpServletRequest convert(DegresslyRequest degresslyRequest)
throws JsonProcessingException {
GeneratedHttpServletRequest httpServletRequest = new GeneratedHttpServletRequest();
httpServletRequest.setMethod(degresslyRequest.getMethod());
httpServletRequest.setMethod(HttpMethod.POST.name());
httpServletRequest.setRequestURI(getRequestURI(degresslyRequest.getUrl()));
return httpServletRequest;

Expand Down

0 comments on commit a52db0d

Please sign in to comment.