Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Notification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Notification
Commits
4c581f85
Commit
4c581f85
authored
4 years ago
by
Komal Makkar
Browse files
Options
Downloads
Patches
Plain Diff
not checking fo get requests
parent
cbcdb4f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!33
Core change: Adding case for handshake request header creation
Pipeline
#13939
failed
4 years ago
Stage: review
Stage: build
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Stage: attribution
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notification-core/src/main/java/org/opengroup/osdu/notification/di/CredentialHeadersProvider.java
+5
-5
5 additions, 5 deletions
...group/osdu/notification/di/CredentialHeadersProvider.java
with
5 additions
and
5 deletions
notification-core/src/main/java/org/opengroup/osdu/notification/di/CredentialHeadersProvider.java
+
5
−
5
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment