Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Notification
Commits
4c581f85
Commit
4c581f85
authored
Nov 04, 2020
by
Komal Makkar
Browse files
not checking fo get requests
parent
cbcdb4f8
Pipeline
#13939
failed with stages
in 18 minutes and 56 seconds
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
notification-core/src/main/java/org/opengroup/osdu/notification/di/CredentialHeadersProvider.java
View file @
4c581f85
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment