# Bug OP-19042 - Webhook sends wrong Content-Type header

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19042

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | API / Webhooks |
| Target versions | 17.2.2 |
| Observed in versions | 17.2.0 |
| Sprint | 17.2.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Set up a webhook in OpenProject (17.2.0)
    
2.  Use a backend that shows the raw header (as example [this](https://community.openproject.org/api/v3/attachments/919772/content) script)
    
    <br>
    

### What is the buggy behavior?

*   The `Content-Type:` header is sent as `Content_type:` header
    
*   <br>
    

### What is the expected behavior?

1.  Sent the conetent type header corretly as in older op versions
    
    <br>
    

###   

### **Logs**

<br>

Old Webhook header:

```http
POST / HTTP/1.1
User-Agent: Faraday v2.14.0
Content-Type: application/json
Accept: application/json
Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Host: 192.168.122.1:7070
Content-Length: 8523
```

New header:

```http
POST / HTTP/1.1
Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept: application/json
User-Agent: Ruby
Host: 192.168.122.1:7070
Content_type: application/json
Content-Length: 8530
```
