Skip to content

Commit

Permalink
Merge pull request #237 from Davis-A/Gitlab-fix-snippet-post
Browse files Browse the repository at this point in the history
GitLab: Fix post_gitlab_snippet headers
  • Loading branch information
rjbs authored Jul 4, 2024
2 parents 9db9f4e + 27584b5 commit 6498502
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Synergy/Reactor/GitLab.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1064,10 +1064,7 @@ async sub mr_report ($self, $who, $arg = {}) {
async sub post_gitlab_snippet ($self, $payload) {
my $res = await $self->hub->http_post(
$self->api_uri . '/v4/snippets',
headers => {
'PRIVATE-TOKEN' => $self->api_token,
},

'PRIVATE-TOKEN' => $self->api_token,
Content_Type => 'application/json',
Content => encode_json($payload),
);
Expand Down

0 comments on commit 6498502

Please sign in to comment.