Skip to content
Snippets Groups Projects
Commit 4c581f85 authored by Komal Makkar's avatar Komal Makkar
Browse files

not checking fo get requests

parent cbcdb4f8
No related branches found
No related tags found
1 merge request!33Core change: Adding case for handshake request header creation
Pipeline #13939 failed
......@@ -52,17 +52,17 @@ public class CredentialHeadersProvider implements FactoryBean<DpsHeaders> {
@Override
public DpsHeaders getObject() throws Exception {
if(this.pubsubRequestBodyExtractor.isHandshakeRequest()) {
// The headers are not needed for the handshake requests.
return new DpsHeaders();
}
RequestMethod requestMethod = RequestMethod.valueOf(httpRequest.getMethod());
switch (requestMethod) {
case POST:
case PUT:
case PATCH: {
if(this.pubsubRequestBodyExtractor.isHandshakeRequest()) {
// The headers are not needed for the handshake requests.
return new DpsHeaders();
}
Map<String, String> attributes = this.pubsubRequestBodyExtractor.extractAttributesFromRequestBody();
try {
//extract headers from pubsub message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment